From: Or Gerlitz Date: Wed, 28 Oct 2015 09:17:04 +0000 (+0100) Subject: mlxsw: Put braces on all arms of branch statement X-Git-Tag: MMI-PSA29.97-13-9~9125^2~45^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9324f68eea7b01bde25ab4c204227f3583b92ba;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mlxsw: Put braces on all arms of branch statement Fix a place where checkpatch complains that braces should be used on all arms of this statement. Signed-off-by: Or Gerlitz Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci.c b/drivers/net/ethernet/mellanox/mlxsw/pci.c index 371ea3f56aed..de69e719dc9d 100644 --- 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);