summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2009-05-12 11:33:39 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-05-12 07:38:09 -0700
commit34fd5dad46fc494c6ed3b174b2c991ea9961ebe9 (patch)
tree902c27a0c5ea7f3ea7eb0c7f956c3aa03dfc6fd5
parent1d80cac0fe44fb87b2a3d35fddd7f534ea81cd90 (diff)
downloadop-kernel-dev-34fd5dad46fc494c6ed3b174b2c991ea9961ebe9.zip
op-kernel-dev-34fd5dad46fc494c6ed3b174b2c991ea9961ebe9.tar.gz
Remove unreached code in drivers/net/mlx4/en_rx.c
Remove the return after the goto. We want the goto because it frees memory as well as returning err. Found by smatch (http://repo.or.cz/w/smatch.git). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/net/mlx4/en_rx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c
index 7942c4d..9ee873e 100644
--- a/drivers/net/mlx4/en_rx.c
+++ b/drivers/net/mlx4/en_rx.c
@@ -951,7 +951,6 @@ static int mlx4_en_config_rss_qp(struct mlx4_en_priv *priv,
if (err) {
mlx4_err(mdev, "Failed to allocate qp #%d\n", qpn);
goto out;
- return err;
}
qp->event = mlx4_en_sqp_event;
OpenPOWER on IntegriCloud