mirror of https://github.com/torvalds/linux.git
hwmon: (sch56xx-common) don't print superfluous errors
The watchdog core will handle error messages already. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20250813190728.3682-2-wsa+renesas@sang-engineering.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
e5d1e313d7
commit
f86e7a69ca
|
|
@ -544,10 +544,8 @@ void sch56xx_watchdog_register(struct device *parent, u16 addr, u32 revision,
|
|||
|
||||
watchdog_set_drvdata(&data->wddev, data);
|
||||
err = devm_watchdog_register_device(parent, &data->wddev);
|
||||
if (err) {
|
||||
pr_err("Registering watchdog chardev: %d\n", err);
|
||||
if (err)
|
||||
devm_kfree(parent, data);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(sch56xx_watchdog_register);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue