https://github.com/torvalds/linux
Revision 269b7c5ff78264e3728b95828d219e0e0eeaec94 authored by Wei Yongjun on 19 July 2019, 01:22:06 UTC, committed by David S. Miller on 19 July 2019, 03:33:48 UTC
In case of error, the function of_get_mac_address() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6f5fa8d
History
Tip revision: 269b7c5ff78264e3728b95828d219e0e0eeaec94 authored by Wei Yongjun on 19 July 2019, 01:22:06 UTC
ag71xx: fix return value check in ag71xx_probe()
Tip revision: 269b7c5
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 14.6 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.6 KB
.mailmap -rw-r--r-- 12.0 KB
COPYING -rw-r--r-- 423 bytes
CREDITS -rw-r--r-- 97.2 KB
Kbuild -rw-r--r-- 1.5 KB
Kconfig -rw-r--r-- 595 bytes
MAINTAINERS -rw-r--r-- 506.6 KB
Makefile -rw-r--r-- 59.3 KB
README -rw-r--r-- 727 bytes

README

back to top