Mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/i2c/busses/i2c-s3c2410.c: In function 'i2c_s3c_irq_nextbyte': drivers/i2c/busses/i2c-s3c2410.c:431:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (i2c->state == STATE_READ) ^ drivers/i2c/busses/i2c-s3c2410.c:439:2: note: here case STATE_WRITE: ^~~~ Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
Unified · Split
| @@ -435,6 +435,7 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat) · 434 unmodified lines | |||
| 435 | * fall through to the write state, as we will need to | 435 | * fall through to the write state, as we will need to |
| 436 | * send a byte as well | 436 | * send a byte as well |
| 437 | */ | 437 | */ |
| 438 | /* Fall through */ | ||
| 438 | 439 | ||
| 439 | case STATE_WRITE: | 440 | case STATE_WRITE: |
| 440 | /* | 441 | /* |