Skip to content

Commit 436cb70

Browse files
Colin Ian Kingalexandrebelloni
authored andcommitted
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: dd3c528 ("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]
1 parent a38fd87 commit 436cb70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,6 @@ static int svc_i3c_master_send_direct_ccc_cmd(struct svc_i3c_master *master,
11241124
cmd->in = NULL;
11251125
cmd->out = &ccc->id;
11261126
cmd->len = 1;
1127-
cmd->read_len = xfer_len;
11281127
cmd->read_len = 0;
11291128
cmd->continued = true;
11301129

0 commit comments

Comments
 (0)