mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
HID: corsair-void: Use %pe for printing PTR_ERR
Use %pe to print a PTR_ERR to silence a cocci warning Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Closes: https://lore.kernel.org/r/202510300342.WtPn2jF3-lkp@intel.com/ Signed-off-by: Stuart Hayhurst <stuart.a.hayhurst@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
cdcbb8e8d1
commit
4e127a7478
|
|
@ -553,9 +553,8 @@ static void corsair_void_add_battery(struct corsair_void_drvdata *drvdata)
|
||||||
|
|
||||||
if (IS_ERR(new_supply)) {
|
if (IS_ERR(new_supply)) {
|
||||||
hid_err(drvdata->hid_dev,
|
hid_err(drvdata->hid_dev,
|
||||||
"failed to register battery '%s' (reason: %ld)\n",
|
"failed to register battery '%s' (reason: %pe)\n",
|
||||||
drvdata->battery_desc.name,
|
drvdata->battery_desc.name, new_supply);
|
||||||
PTR_ERR(new_supply));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user