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:
0f40391
)
net/mlx5: Use ERR_CAST() instead of coding it
author
Roi Dayan
<roid@mellanox.com>
Tue, 17 Jul 2018 01:35:35 +0000
(18:35 -0700)
committer
Saeed Mahameed
<saeedm@mellanox.com>
Wed, 18 Jul 2018 21:33:25 +0000
(14:33 -0700)
This makes it more readable that rule is being used to return an err.
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index 05e7a5112b74c99bbae73bdae65f044ce24900f9..29b86232f13adadbd87db469987f8595ef098440 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@
-1825,7
+1825,7
@@
search_again_locked:
g = alloc_auto_flow_group(ft, spec);
if (IS_ERR(g)) {
- rule =
(void *)g
;
+ rule =
ERR_CAST(g)
;
up_write_ref_node(&ft->node);
return rule;
}