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:
ef743fd
)
mlxsw: Put braces on all arms of branch statement
author
Or Gerlitz
<
[email protected]
>
Wed, 28 Oct 2015 09:17:04 +0000
(10:17 +0100)
committer
David S. Miller
<
[email protected]
>
Fri, 30 Oct 2015 03:26:57 +0000
(12:26 +0900)
Fix a place where checkpatch complains that braces should be used
on all arms of this statement.
Signed-off-by: Or Gerlitz <
[email protected]
>
Signed-off-by: Jiri Pirko <
[email protected]
>
Signed-off-by: Ido Schimmel <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlxsw/pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/pci.c
b/drivers/net/ethernet/mellanox/mlxsw/pci.c
index 371ea3f56aed1c5d9f3154869e812dee47930471..de69e719dc9d96ffa149f50c2744325ce68053d6 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/pci.c
+++ b/
drivers/net/ethernet/mellanox/mlxsw/pci.c
@@
-1662,8
+1662,9
@@
static int mlxsw_pci_cmd_exec(void *bus_priv, u16 opcode, u8 opcode_mod,
CIR_OUT_PARAM_LO));
memcpy(out_mbox + sizeof(tmp), &tmp, sizeof(tmp));
}
- } else if (!err && out_mbox)
+ } else if (!err && out_mbox)
{
memcpy(out_mbox, mlxsw_pci->cmd.out_mbox.buf, out_mbox_size);
+ }
mutex_unlock(&mlxsw_pci->cmd.lock);