Commit 1d092308 authored by Wolfram Sang's avatar Wolfram Sang

i2c: gxp: remove "empty" switch statement

There used to be error messages which had to go. Now, it only consists
of 'break's, so it can go.
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent a76d19e6
...@@ -126,19 +126,8 @@ static int gxp_i2c_master_xfer(struct i2c_adapter *adapter, ...@@ -126,19 +126,8 @@ static int gxp_i2c_master_xfer(struct i2c_adapter *adapter,
time_left = wait_for_completion_timeout(&drvdata->completion, time_left = wait_for_completion_timeout(&drvdata->completion,
adapter->timeout); adapter->timeout);
ret = num - drvdata->msgs_remaining; ret = num - drvdata->msgs_remaining;
if (time_left == 0) { if (time_left == 0)
switch (drvdata->state) {
case GXP_I2C_WDATA_PHASE:
break;
case GXP_I2C_RDATA_PHASE:
break;
case GXP_I2C_ADDR_PHASE:
break;
default:
break;
}
return -ETIMEDOUT; return -ETIMEDOUT;
}
if (drvdata->state == GXP_I2C_ADDR_NACK || if (drvdata->state == GXP_I2C_ADDR_NACK ||
drvdata->state == GXP_I2C_DATA_NACK) drvdata->state == GXP_I2C_DATA_NACK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment