mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
i3c: master: svc: remove redundant assignment to cmd->read_len
The assignment of xfer_len to cmd->read_len appears to be redundant
as the next statement re-assigns the value 0 to it. Clean up the
code by removing the redundant first assignment.
Addresses-Coverity: ("Unused value")
Fixes: dd3c52846d ("i3c: master: svc: Add Silvaco I3C master driver")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
committed by
Alexandre Belloni
parent
a38fd87484
commit
436cb709f8
@@ -1124,7 +1124,6 @@ static int svc_i3c_master_send_direct_ccc_cmd(struct svc_i3c_master *master,
|
||||
cmd->in = NULL;
|
||||
cmd->out = &ccc->id;
|
||||
cmd->len = 1;
|
||||
cmd->read_len = xfer_len;
|
||||
cmd->read_len = 0;
|
||||
cmd->continued = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user