]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
qlge: remove unecessary if statement
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Sun, 5 Jun 2011 14:44:13 +0000 (14:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2011 05:53:13 +0000 (22:53 -0700)
the code always returns 'status' regardless, so if(status) check is unecessary.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_ethtool.c

index 19b00fa0eaf0205b7e5c901a738ff6b747d7eea9..9b67bfea035ff6082cb05c0a48fcf16f1819d607 100644 (file)
@@ -650,8 +650,6 @@ static int ql_set_pauseparam(struct net_device *netdev,
                return -EINVAL;
 
        status = ql_mb_set_port_cfg(qdev);
-       if (status)
-               return status;
        return status;
 }