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.

char: xilinx_hwicap: 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-1-ae39027d740b@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Javier Carrasco and committed by
Greg Kroah-Hartman
4a055328 a13bd6f3

+1 -1
+1 -1
drivers/char/xilinx_hwicap/xilinx_hwicap.c
··· 636 636 retval = -ENOMEM; 637 637 goto failed; 638 638 } 639 - dev_set_drvdata(dev, (void *)drvdata); 639 + dev_set_drvdata(dev, drvdata); 640 640 641 641 drvdata->base_address = devm_platform_ioremap_resource(pdev, 0); 642 642 if (!drvdata->base_address) {