Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9324f68 authored by Or Gerlitz's avatar Or Gerlitz Committed by David S. Miller
Browse files

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: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef743fdd
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1662,8 +1662,9 @@ static int mlxsw_pci_cmd_exec(void *bus_priv, u16 opcode, u8 opcode_mod,
							   CIR_OUT_PARAM_LO));
							   CIR_OUT_PARAM_LO));
			memcpy(out_mbox + sizeof(tmp), &tmp, sizeof(tmp));
			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);
		memcpy(out_mbox, mlxsw_pci->cmd.out_mbox.buf, out_mbox_size);
	}


	mutex_unlock(&mlxsw_pci->cmd.lock);
	mutex_unlock(&mlxsw_pci->cmd.lock);