diff options
author | Marius Zachmann <[email protected]> | 2023-12-10 23:03:57 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2023-12-11 06:42:31 -0800 |
commit | b449879243dbd141b5a50ecb4a312ab87d313390 (patch) | |
tree | 1e8018ad253d78d21dd421a52ccb860ba31c8560 | |
parent | 62361638ae39d59eac974e5f8c7d6bfc66bec3b9 (diff) |
hwmon: (corsair-cpro) use NULL instead of 0
Replaces the integer 0 with NULL.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Marius Zachmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r-- | drivers/hwmon/corsair-cpro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/corsair-cpro.c b/drivers/hwmon/corsair-cpro.c index 463ab4296ede..a284a02839fb 100644 --- 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; |