We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76d19e commit 1d09230Copy full SHA for 1d09230
drivers/i2c/busses/i2c-gxp.c
@@ -126,19 +126,8 @@ static int gxp_i2c_master_xfer(struct i2c_adapter *adapter,
126
time_left = wait_for_completion_timeout(&drvdata->completion,
127
adapter->timeout);
128
ret = num - drvdata->msgs_remaining;
129
- if (time_left == 0) {
130
- switch (drvdata->state) {
131
- case GXP_I2C_WDATA_PHASE:
132
- break;
133
- case GXP_I2C_RDATA_PHASE:
134
135
- case GXP_I2C_ADDR_PHASE:
136
137
- default:
138
139
- }
+ if (time_left == 0)
140
return -ETIMEDOUT;
141
142
143
if (drvdata->state == GXP_I2C_ADDR_NACK ||
144
drvdata->state == GXP_I2C_DATA_NACK)
0 commit comments