diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-08 19:08:26 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-12-02 11:39:45 +0100 |
commit | 9d793c1a7f25d75d5947022368dfcfa9f75d4412 (patch) | |
tree | 67dc196ffbcda4dd5c975b2b5c4c4a0f8d87ea33 | |
parent | iio: cros_ec: Remove unused variables (diff) | |
download | linux-9d793c1a7f25d75d5947022368dfcfa9f75d4412.tar.xz linux-9d793c1a7f25d75d5947022368dfcfa9f75d4412.zip |
iio: core: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1397962
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/industrialio-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 9c4cfd19b739..2e8e36f9da61 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -588,6 +588,7 @@ static ssize_t __iio_format_value(char *buf, size_t len, unsigned int type, return snprintf(buf, len, "%d", vals[0]); case IIO_VAL_INT_PLUS_MICRO_DB: scale_db = true; + /* fall through */ case IIO_VAL_INT_PLUS_MICRO: if (vals[1] < 0) return snprintf(buf, len, "-%d.%06u%s", abs(vals[0]), |