Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: 3w-xxx: Remove redundant initialization of variable retval

The variable retval is being initialized with a value that is never read,
it is being updated immediately afterwards. The assignment is redundant and
can be removed.

Link: https://lore.kernel.org/r/20211013182834.137410-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")

authored by

Colin Ian King and committed by
Martin K. Petersen
8ecfb16c b3ef4a0e

+1 -1
+1 -1
drivers/scsi/3w-xxxx.c
··· 2252 2252 { 2253 2253 struct Scsi_Host *host = NULL; 2254 2254 TW_Device_Extension *tw_dev; 2255 - int retval = -ENODEV; 2255 + int retval; 2256 2256 2257 2257 retval = pci_enable_device(pdev); 2258 2258 if (retval) {