diff options
| author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-07 23:02:59 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:10:40 +0200 |
| commit | 249e0ab80c47345aea98449ea5671c0d2a3e95ce (patch) | |
| tree | 69b54f04a9ef6c488f529380205f38ad42c315a2 /drivers/dma | |
| parent | 359311b85ebec7c07c3a08ae2f3def946cad33fa (diff) | |
| download | linux-249e0ab80c47345aea98449ea5671c0d2a3e95ce.tar.gz linux-249e0ab80c47345aea98449ea5671c0d2a3e95ce.tar.bz2 linux-249e0ab80c47345aea98449ea5671c0d2a3e95ce.zip | |
net: moxa: Use devm_platform_get_and_ioremap_resource()
commit 35cba15a504bf4f585bb9d78f47b22b28a1a06b2 upstream.
Use devm_platform_get_and_ioremap_resource() to simplify
code and avoid a null-ptr-deref by checking 'res' in it.
[yyl: since devm_platform_get_and_ioremap_resource() is introduced
in linux-5.7, so just check the return value after calling
platform_get_resource()]
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions
