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 19b00fa..9b67bfe 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;
 }