diff options
author | Waqar Hameed <waqar.hameed@axis.com> | 2025-08-12 14:13:58 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-13 17:24:50 -0700 |
commit | 3051f49b0e03b1a5a2f8a70dbc4ae5bf3759bcb7 (patch) | |
tree | 0d5f3b57701a77c097d22929ccf9270d527e775f /rust/helpers/platform.c | |
parent | 30f7d4099fb6736712338bd3e41433db796ec869 (diff) |
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>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions