diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-07 07:56:03 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2023-04-22 12:53:56 +0200 |
commit | e0e0ee02e616269451dd00ff56be0328d5625a92 (patch) | |
tree | 82fa8a2c9dea89bc7c30657770968a707a1ca7fa /include/video | |
parent | 16d477a1dba9f214d1229d0a122d6d3a9636aa79 (diff) |
watchdog: s3c2410_wdt: Simplify using dev_err_probe()
Make use of dev_err_probe() also for error paths that don't have to
handle -EPROBE_DEFER. While the code handing -EPROBE_DEFER isn't used
for these error paths, it still simpler as it cares for pretty printing
the error code and usually needs one code line less as it combines
message emitting and error returning. This also unifies the format of
the error messages.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230307065603.2253054-3-u.kleine-koenig@pengutronix.de
[groeck: Split long line to avoid checkpatch warning]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'include/video')
0 files changed, 0 insertions, 0 deletions