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.

iio: humidity: hts211: drop casting to void in dev_set_drvdata

The C standard specifies that there is no need to cast from a pointer to
void [1]. Therefore, it can be safely dropped.

[1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240303-void_in_dev_set_drvdata-v1-3-ae39027d740b@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
8c5b0ea6 ba7352d0

+1 -1
+1 -1
drivers/iio/humidity/hts221_core.c
··· 573 573 if (!iio_dev) 574 574 return -ENOMEM; 575 575 576 - dev_set_drvdata(dev, (void *)iio_dev); 576 + dev_set_drvdata(dev, iio_dev); 577 577 578 578 hw = iio_priv(iio_dev); 579 579 hw->name = name;