projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6236163
)
hwmon: (corsair-cpro) use NULL instead of 0
author
Marius Zachmann
<mail@mariuszachmann.de>
Sun, 10 Dec 2023 22:03:57 +0000
(23:03 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 11 Dec 2023 14:42:31 +0000
(06:42 -0800)
Replaces the integer 0 with NULL.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312100455.k6m2eO4N-lkp@intel.com/
Signed-off-by: Marius Zachmann <mail@mariuszachmann.de>
Link:
https://lore.kernel.org/r/20231210220357.77036-1-mail@mariuszachmann.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/corsair-cpro.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/corsair-cpro.c
b/drivers/hwmon/corsair-cpro.c
index 463ab4296ede5c0cc47d383a439a9ab416f88566..a284a02839fbbd83249c53eb0553c34615c4e22c 100644
(file)
--- a/
drivers/hwmon/corsair-cpro.c
+++ b/
drivers/hwmon/corsair-cpro.c
@@
-524,7
+524,7
@@
static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
if (ret)
goto out_hw_close;
ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
- ccp, &ccp_chip_info,
0
);
+ ccp, &ccp_chip_info,
NULL
);
if (IS_ERR(ccp->hwmon_dev)) {
ret = PTR_ERR(ccp->hwmon_dev);
goto out_hw_close;