net: bcmasp: Clean up redundant dev_err_probe()
authorChen Jiahao <chenjiahao16@huawei.com>
Thu, 27 Jul 2023 11:55:51 +0000 (19:55 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Jul 2023 01:47:23 +0000 (18:47 -0700)
commitc88c157d25d96ed760b91837aec81f19c44b0bf3
tree85743c5bd2b2cfde09dcbec5970724b93846eeaf
parent61c5145317a23b3ee03d3aa01d46df57d75e4dee
net: bcmasp: Clean up redundant dev_err_probe()

Referring to platform_get_irq()'s definition, the return value has
already been checked, error message also been printed via
dev_err_probe() if ret < 0. Calling dev_err_probe() one more time
outside platform_get_irq() is obviously redundant.

Removing dev_err_probe() outside platform_get_irq() to clean up
above problem.

Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Justin Chen <justin.chen@broadcom.com>
Link: https://lore.kernel.org/r/20230727115551.2655840-1-chenjiahao16@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/asp2/bcmasp.c