aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilken Gottwalt <[email protected]>2021-11-13 06:53:52 +0000
committerGuenter Roeck <[email protected]>2021-11-14 16:57:16 -0800
commit8383226583251858814d5521b542e7bf7dbadc4b (patch)
treeb1f5d0177eee062a225280427ba95bb1ff89e830
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
hwmon: (corsair-psu) fix plain integer used as NULL pointer
sparse warnings: (new ones prefixed by >>) >> drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain integer as NULL pointer Fixes: d115b51e0e56 ("hwmon: add Corsair PSU HID controller driver") Reported-by: kernel test robot <[email protected]> Signed-off-by: Wilken Gottwalt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r--drivers/hwmon/corsair-psu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c
index 731d5117f9f1..14389fd7afb8 100644
--- a/drivers/hwmon/corsair-psu.c
+++ b/drivers/hwmon/corsair-psu.c
@@ -729,7 +729,7 @@ static int corsairpsu_probe(struct hid_device *hdev, const struct hid_device_id
corsairpsu_check_cmd_support(priv);
priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsairpsu", priv,
- &corsairpsu_chip_info, 0);
+ &corsairpsu_chip_info, NULL);
if (IS_ERR(priv->hwmon_dev)) {
ret = PTR_ERR(priv->hwmon_dev);