]> Gentwo Git Trees - linux/.git/commit
net: enetc: Remove error print for devm_add_action_or_reset()
authorWaqar Hameed <waqar.hameed@axis.com>
Tue, 12 Aug 2025 12:13:58 +0000 (14:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Aug 2025 00:24:50 +0000 (17:24 -0700)
commit3051f49b0e03b1a5a2f8a70dbc4ae5bf3759bcb7
tree0d5f3b57701a77c097d22929ccf9270d527e775f
parent30f7d4099fb6736712338bd3e41433db796ec869
net: enetc: Remove error print for devm_add_action_or_reset()

When `devm_add_action_or_reset()` fails, it is due to a failed memory
allocation and will thus return `-ENOMEM`. `dev_err_probe()` doesn't do
anything when error is `-ENOMEM`. Therefore, remove the useless call to
`dev_err_probe()` when `devm_add_action_or_reset()` fails, and just
return the value instead.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/pnd1ppghh4p.a.out@axis.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc4_pf.c