]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Fix error return code in axienet_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 Nov 2019 15:54:49 +0000 (15:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:24:16 +0000 (21:24 -0800)
commit1e2ea6c45948e9fef0ccb645839b09e344a55101
tree238ca3fd2b35fc003ef6af085d33475fe524c0ed
parentc92bc1dbc48ed0597e73669f53f930b7ef5948f4
net: axienet: Fix error return code in axienet_probe()

In the DMA memory resource get failed case, the error is not
set and 0 will be returned. Fix it by removing redundant check
since devm_ioremap_resource() will handle it.

Fixes: 3260e2909589 ("net: axienet: make use of axistream-connected attribute optional")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c