From: Greg Dietsche Date: Sun, 5 Jun 2011 14:44:13 +0000 (+0000) Subject: qlge: remove unecessary if statement X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=324dd96d2b022595b9fc8f24305b3ab770cc63b9;p=openwrt%2Fstaging%2Fblogic.git qlge: remove unecessary if statement the code always returns 'status' regardless, so if(status) check is unecessary. Signed-off-by: Greg Dietsche Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c index 19b00fa0eaf0..9b67bfea035f 100644 --- a/drivers/net/qlge/qlge_ethtool.c +++ b/drivers/net/qlge/qlge_ethtool.c @@ -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; }