Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dde9f93c205a791c5647c14d43003c578ebf6f2d
Commit:     dde9f93c205a791c5647c14d43003c578ebf6f2d
Parent:     fcdff13905934874016f1899b15a9221c055d6ea
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 10:02:32 2007 +0200
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Tue Jul 24 16:28:41 2007 -0400

    drivers/net/acenic.c: fix check-after-use
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/acenic.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c
index b78a4e5..62e660a 100644
--- a/drivers/net/acenic.c
+++ b/drivers/net/acenic.c
@@ -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 [EMAIL PROTECTED] I2C device
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to