Skip to content

Commit

Permalink
i3c: master: svc: remove redundant assignment to cmd->read_len
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Colin Ian King authored and alexandrebelloni committed Mar 9, 2021
1 parent a38fd87 commit 436cb70
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/i3c/master/svc-i3c-master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 436cb70

Please sign in to comment.