Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: rave-sp: Avoid unnecessary use of comma operator

Although it does not seem to have any untoward side-effects,
the use of ';' to separate to assignments seems more appropriate than ','.

Flagged by clang-17 -Wcomma

No functional change intended. Compile tested only.

Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240123-rave-sp-comma-v1-1-84e9b15ba205@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Simon Horman and committed by
Lee Jones
944e823d 6cea614b

+1 -1
+1 -1
drivers/mfd/rave-sp.c
··· 358 358 359 359 ackid = atomic_inc_return(&sp->ackid); 360 360 reply.ackid = ackid; 361 - reply.code = rave_sp_reply_code((u8)command), 361 + reply.code = rave_sp_reply_code((u8)command); 362 362 363 363 mutex_lock(&sp->bus_lock); 364 364