]> git.baikalelectronics.ru Git - kernel.git/commit
net: netsec: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 07:37:29 +0000 (15:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2021 08:42:29 +0000 (09:42 +0100)
commitabefc643aef831186474fca6dcd6955ca8ab59b1
tree2f1f5498715a43da017ab7ab5ec6001a9e2d8859
parente1fd1f871f0e3f16ed7f92412c780d9fe0d8c9e5
net: netsec: Make use of the helper function dev_err_probe()

When possible use dev_err_probe help to properly deal with the
PROBE_DEFER error, the benefit is that DEFER issue will be logged
in the devices_deferred debugfs file.
And using dev_err_probe() can reduce code size, and the error value
gets printed.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c