diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-02-11 16:23:18 -0600 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-04 20:19:41 +0100 |
commit | cb57f2eb0156829f61dd946d96b1270ea7535b76 (patch) | |
tree | 4b419009d4352c590a1142650aa218aa32fe0a18 /drivers/iio/industrialio-trigger.c | |
parent | faad0af1623c5dd214aa3207ba43186ee37c685d (diff) | |
download | linux-cb57f2eb0156829f61dd946d96b1270ea7535b76.tar.gz linux-cb57f2eb0156829f61dd946d96b1270ea7535b76.tar.bz2 linux-cb57f2eb0156829f61dd946d96b1270ea7535b76.zip |
iio: mma8452: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/iio/accel/mma8452.c: In function ‘mma8452_probe’:
drivers/iio/accel/mma8452.c:1581:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (ret == data->chip_info->chip_id)
^
drivers/iio/accel/mma8452.c:1584:2: note: here
default:
^~~~~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
0 files changed, 0 insertions, 0 deletions