[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 5 Jun 2011 19:44:13 -0500
From: Greg Dietsche <Gregory.Dietsche@....edu>
To: ron.mercer@...gic.com
Cc: linux-driver@...gic.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Greg Dietsche <Gregory.Dietsche@....edu>
Subject: [PATCH] qlge: remove unecessary if statement
the code always returns 'status' regardless, so if(status) check is unecessary.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@....edu>
---
drivers/net/qlge/qlge_ethtool.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c
index 19b00fa..9b67bfe 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;
}
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists