phylib: simplify NULL checks
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 28 Aug 2015 18:35:14 +0000 (21:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 21:15:25 +0000 (14:15 -0700)
commitef899c0778a39063816e19d749a688c06a6ac78e
tree461baa852a49e97a9175fdfb75a5910a05ca9413
parentd3765f08d6f32f17ac898ec1f19957b322d4157f
phylib: simplify NULL checks

Fix scripts/checkpatch.pl's messages like:

CHECK: Comparison to NULL could be written "!phydrv->read_mmd_indirect"

BTW, it doesn't detect the reversed comparisons (which I've fixed as well).

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c