]> git.baikalelectronics.ru Git - kernel.git/commit
pxa168_eth: remove unneeded null check
authorDan Carpenter <error27@gmail.com>
Tue, 24 Aug 2010 06:52:46 +0000 (06:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2010 21:50:26 +0000 (14:50 -0700)
commitff1a7422ed3af8bc4541a1e0b29d84788573b17b
tree4dc87147db2e92f6b4eb9ca41813cd718ea6cdaf
parente9645fa58b1d4807db80d9be952b1b83576b8e73
pxa168_eth: remove unneeded null check

"pep->pd" isn't checked consistently in this function.  For example it's
dereferenced unconditionally on the next line after the end of the if
condition.  This function is only called from pxa168_eth_probe() and
pep->pd is always non-NULL so I removed the check.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pxa168_eth.c