diff options
| author | Wei Yongjun <[email protected]> | 2016-07-12 00:17:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-07-12 02:48:10 +0000 |
| commit | 12c2e32f14da857b58af281b029d4549d24c3292 (patch) | |
| tree | 0dac404657ca43d661cd913925a9e9ecf522ce0e /net/switchdev/switchdev.c | |
| parent | b53: Fix build warning. (diff) | |
| download | kernel-12c2e32f14da857b58af281b029d4549d24c3292.tar.gz kernel-12c2e32f14da857b58af281b029d4549d24c3292.zip | |
net: ethernet: bgmac: Fix return value check in bgmac_probe()
In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should be
replaced with IS_ERR().
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
