Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: iio: cdc: ad7746: Remove unnecessary assignment in ad7746_probe()

In the function ad7746_probe(), the initialized value of 'ret' is unused,
because it will be assigned by the function i2c_smbus_write_byte_data(),
thus remove it.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210518095647.3008-1-tangbin@cmss.chinamobile.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Tang Bin and committed by
Jonathan Cameron
842b1722 b892770a

+1 -1
+1 -1
drivers/staging/iio/cdc/ad7746.c
··· 680 680 struct ad7746_chip_info *chip; 681 681 struct iio_dev *indio_dev; 682 682 unsigned char regval = 0; 683 - int ret = 0; 683 + int ret; 684 684 685 685 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip)); 686 686 if (!indio_dev)