diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-11-06 15:54:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-26 10:01:06 +0100 |
| commit | e9870cdb685cd0750fb4f05cbfc81075be88919e (patch) | |
| tree | 5bdccb4c6fea5faf08f42280f909773fb635e343 /drivers/rtc | |
| parent | e9a6f09fc29ca36ae5a6df7644cce51fccf705e7 (diff) | |
| download | linux-e9870cdb685cd0750fb4f05cbfc81075be88919e.tar.gz linux-e9870cdb685cd0750fb4f05cbfc81075be88919e.tar.bz2 linux-e9870cdb685cd0750fb4f05cbfc81075be88919e.zip | |
net: axienet: Fix error return code in axienet_probe()
[ Upstream commit eb34e98baf4ce269423948dacefea6747e963b48 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions
