mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
net: mido: mdio-mux-bcm-iproc: Use devm_platform_get_and_ioremap_resource()
[ Upstream commit 8a55a73433 ]
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
7ca7d4404b
commit
dd18ad96a9
1 changed files with 3 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue