]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: megaraid: Remove redundant assignment to variable 'retval'
authorColin Ian King <colin.i.king@gmail.com>
Thu, 18 Jan 2024 12:14:41 +0000 (12:14 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Jan 2024 02:38:18 +0000 (21:38 -0500)
commit9759cdc1bcb8659dae638bd0c3927eac6db9c874
tree22c3ee1f8a5b50025a2bee0b8f28ba72f03f8dd0
parent01f256228c0f89c4b48fbc7c67b64a26cdcfd740
scsi: megaraid: Remove redundant assignment to variable 'retval'

The variable 'retval' is being assigned a value that is not being read
afterwards. The assignment is redundant and can be removed.

Cleans up clang scan warning:

Although the value stored to 'retval' is used in the enclosing
expression, the value is never actually read from 'retval'
[deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20240118121441.2533620-1-colin.i.king@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid.c