projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d80cac
)
Remove unreached code in drivers/net/mlx4/en_rx.c
author
Dan Carpenter
<error27@gmail.com>
Tue, 12 May 2009 10:33:39 +0000
(11:33 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 12 May 2009 14:38:09 +0000
(07:38 -0700)
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>
drivers/net/mlx4/en_rx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/mlx4/en_rx.c
b/drivers/net/mlx4/en_rx.c
index 7942c4d3cd8835dd2bf29d6522e4a1f2ab92a099..9ee873e872b34a2c02db98ab59e3b5c3f2616b13 100644
(file)
--- 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;