pcnet32: remove superfluous NULL pointer check in pcnet32_probe1()
commitdf4e7f72f5156ef16a918da8a575ba90ec27ab77
authorDon Fry <pcnet32@verizon.net>
Fri, 31 Jul 2009 08:40:06 +0000 (31 08:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Aug 2009 19:23:05 +0000 (2 12:23 -0700)
treee1327cc5ae7c0f92ede1bc7c6a2c6e4d4d39ee2b
parenta6ac65db2329e7685299666f5f7b6093c7b0f3a0
pcnet32: remove superfluous NULL pointer check in pcnet32_probe1()

Move the debug printk() into the proper place and remove superfluous
NULL pointer check in pcnet32_probe1().

This takes care of the following entry from Dan's list:

drivers/net/pcnet32.c +1889 pcnet32_probe1(298) warning: variable derefenced before check 'pdev'

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Don Fry <pcnet32@verizon.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcnet32.c