diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-11-06 15:54:49 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 21:24:16 -0800 |
commit | eb34e98baf4ce269423948dacefea6747e963b48 (patch) | |
tree | 238ca3fd2b35fc003ef6af085d33475fe524c0ed /net | |
parent | net: aquantia: fix return value check in aq_ptp_init() (diff) | |
download | linux-dev-eb34e98baf4ce269423948dacefea6747e963b48.tar.xz linux-dev-eb34e98baf4ce269423948dacefea6747e963b48.zip |
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: 28ef9ebdb64c ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions