diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-02-24 15:13:49 +0000 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-03-09 21:13:31 +0100 |
commit | 436cb709f8a9fd1a52e00e830e715c63191c2e63 (patch) | |
tree | 4a5d92b51a0cc67ddcd629d4c07ffeeb0ced09a5 /drivers/i3c/master | |
parent | a38fd8748464831584a19438cbb3082b5a2dab15 (diff) | |
download | linux-436cb709f8a9fd1a52e00e830e715c63191c2e63.tar.bz2 |
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: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210224151349.202332-1-colin.king@canonical.com
Diffstat (limited to 'drivers/i3c/master')
-rw-r--r-- | drivers/i3c/master/svc-i3c-master.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index 8d990696676e..1f6ba4221817 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -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; |