iio: adc: ad7292: Modify the bool initialization assignment
authorGuoqing Chi <chiguoqing@yulong.com>
Fri, 19 Mar 2021 06:27:06 +0000 (14:27 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 25 Mar 2021 19:13:52 +0000 (19:13 +0000)
A bool initializer is best assigned to false rather than 0.

Signed-off-by: Guoqing Chi <chiguoqing@yulong.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20210319062706.5135-1-chi962464zy@163.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7292.c

index 70e33dd1c9f7247c27dea7c75f11d66fe8510223..3271a31afde1cc6a61591f6aa6bf176d7e6fcf09 100644 (file)
@@ -260,7 +260,7 @@ static int ad7292_probe(struct spi_device *spi)
        struct ad7292_state *st;
        struct iio_dev *indio_dev;
        struct device_node *child;
-       bool diff_channels = 0;
+       bool diff_channels = false;
        int ret;
 
        indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));