projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7d500
)
net/mlx4_core: Remove duplicate code line from procedure mlx4_bf_alloc
author
Jack Morgenstein
<
[email protected]
>
Tue, 27 Jan 2015 13:58:05 +0000
(15:58 +0200)
committer
David S. Miller
<
[email protected]
>
Wed, 28 Jan 2015 01:12:57 +0000
(17:12 -0800)
mlx4_bf_alloc had an unnecessary/duplicate code line. Did no harm,
but not good practice.
Reported by the Mellanox Beijing team.
Signed-off-by: Jack Morgenstein <
[email protected]
>
Signed-off-by: Amir Vadai <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/pd.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/pd.c
b/drivers/net/ethernet/mellanox/mlx4/pd.c
index a42b4c0a9ed90a592067c5276f9ca7e16aaa7525..609c59dc854e987a073e32cb4ff2c08736998edb 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/pd.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/pd.c
@@
-214,7
+214,6
@@
int mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node)
list_add(&uar->bf_list, &priv->bf_list);
}
- bf->uar = uar;
idx = ffz(uar->free_bf_bmap);
uar->free_bf_bmap |= 1 << idx;
bf->uar = uar;