mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
misc: ibmasm: add parentheses around sizeof operand
sizeof used without parentheses around its operand on two occasions in r_heartbeat.c. Add them to comply with the kernel coding style. Signed-off-by: Batu Ada Tutkun <batuadatutkun@gmail.com> Link: https://patch.msgid.link/20260622201633.2577-1-batuadatutkun@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
937cd823bb
commit
4965758a48
@@ -51,12 +51,12 @@ int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_
|
||||
int times_failed = 0;
|
||||
int result = 1;
|
||||
|
||||
cmd = ibmasm_new_command(sp, sizeof rhb_dot_cmd);
|
||||
cmd = ibmasm_new_command(sp, sizeof(rhb_dot_cmd));
|
||||
if (!cmd)
|
||||
return -ENOMEM;
|
||||
|
||||
while (times_failed < 3) {
|
||||
memcpy(cmd->buffer, (void *)&rhb_dot_cmd, sizeof rhb_dot_cmd);
|
||||
memcpy(cmd->buffer, (void *)&rhb_dot_cmd, sizeof(rhb_dot_cmd));
|
||||
cmd->status = IBMASM_CMD_PENDING;
|
||||
ibmasm_exec_command(sp, cmd);
|
||||
ibmasm_wait_for_response(cmd, IBMASM_CMD_TIMEOUT_NORMAL);
|
||||
|
||||
Reference in New Issue
Block a user