OSDN Git Service

iio:light:noa1305: Fix missing break statement.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 13 Aug 2019 13:38:51 +0000 (21:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 07:37:36 +0000 (09:37 +0200)
This got caught by the implicit fall through detection but is
a bug rather than missing marking.

Reported-by: 0-DAY kernel test infrastructure
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Fixes: 741172d18e8a ("iio: light: noa1305: Add support for NOA1305")
Link: https://lore.kernel.org/r/20190813133851.14345-1-Jonathan.Cameron@huawei.com
Cc: Gustavo Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/noa1305.c

index 7b859ae..5ebfbc5 100644 (file)
@@ -85,6 +85,7 @@ static int noa1305_scale(struct noa1305_priv *priv, int *val, int *val2)
        case NOA1305_INTEGR_TIME_400MS:
                *val = 100;
                *val2 = 77 * 4;
+               break;
        case NOA1305_INTEGR_TIME_200MS:
                *val = 100;
                *val2 = 77 * 2;