linux-stable/drivers/net/ethernet/cirrus
Ruan Jinjie 497c3a5fb3 cirrus: cs89x0: fix the return value handle and remove redundant dev_warn() for platform_get_irq()
There is no possible for platform_get_irq() to return 0
and the return value of platform_get_irq() is more sensible
to show the error reason.

And there is no need to call the dev_warn() function directly to print
a custom message when handling an error from platform_get_irq() function as
it is going to display an appropriate error message in case of a failure.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20230801133121.416319-1-ruanjinjie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-02 12:10:39 -07:00
..
cs89x0.c cirrus: cs89x0: fix the return value handle and remove redundant dev_warn() for platform_get_irq() 2023-08-02 12:10:39 -07:00
cs89x0.h ethernet: cirrus: Remove unused macros 2020-08-18 12:54:47 -07:00
ep93xx_eth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
Kconfig net: cs89x0: disable compile testing on powerpc 2021-09-03 13:42:27 +01:00
mac89x0.c cirrus: mac89x0: use eth_hw_addr_set() 2021-11-19 11:05:21 +00:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00