mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
net: moxa: Use devm_platform_get_and_ioremap_resource()
[ Upstream commit 35cba15a50 ]
Use devm_platform_get_and_ioremap_resource() to simplify
code and avoid a null-ptr-deref by checking 'res' in it.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
278dc34b71
commit
8e4da40142
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue