Skip to content

Commit

Permalink
drivers/net/acenic.c: fix check-after-use
Browse files Browse the repository at this point in the history
The Coverity checker noted that we've already dereferenced "dev" when we
check whether it's NULL.

Since it's impossible that "dev" is NULL at this place this patch
removes the NULL check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Adrian Bunk authored and Jeff Garzik committed Jul 24, 2007
1 parent fcdff13 commit dde9f93
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/acenic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3128,12 +3128,6 @@ static int __devinit read_eeprom_byte(struct net_device *dev,
int result = 0;
short i;

if (!dev) {
printk(KERN_ERR "No device!\n");
result = -ENODEV;
goto out;
}

/*
* Don't take interrupts on this CPU will bit banging
* the %#%#@$ I2C device
Expand Down

0 comments on commit dde9f93

Please sign in to comment.