mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
net/mlx5: Use ERR_CAST() instead of coding it
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>
This commit is contained in:
parent
0f4039104e
commit
d34c6efc59
1 changed files with 1 additions and 1 deletions
|
@ -1825,7 +1825,7 @@ search_again_locked:
|
||||||
|
|
||||||
g = alloc_auto_flow_group(ft, spec);
|
g = alloc_auto_flow_group(ft, spec);
|
||||||
if (IS_ERR(g)) {
|
if (IS_ERR(g)) {
|
||||||
rule = (void *)g;
|
rule = ERR_CAST(g);
|
||||||
up_write_ref_node(&ft->node);
|
up_write_ref_node(&ft->node);
|
||||||
return rule;
|
return rule;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue