]> git.baikalelectronics.ru Git - kernel.git/commit
i3c: master: svc: remove redundant assignment to cmd->read_len
authorColin Ian King <colin.king@canonical.com>
Wed, 24 Feb 2021 15:13:49 +0000 (15:13 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Mar 2021 20:13:31 +0000 (21:13 +0100)
commit23dd92fc3948487a3ae40cee5b61ba95c5f662b5
tree4a5d92b51a0cc67ddcd629d4c07ffeeb0ced09a5
parent1b8bd930b05ba1f659bccfc6ef406e93916f57ed
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: 9361ed4555c0 ("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
drivers/i3c/master/svc-i3c-master.c