Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9730ddfb authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen
Browse files

scsi: fnic: remove redundant assignment of variable rc



Variable ret is initialized to a value that is never read and it is
re-assigned later and immediately returns. Clean up the code by removing
rc and just returning 0.

[mkp: typo]

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarKaran Tilak Kumar <kartilak@cisco.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 3cf92f4b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ static struct fc_trace_flag_type *fc_trc_flag;
 */
int fnic_debugfs_init(void)
{
	int rc = -1;
	fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL);

	fnic_stats_debugfs_root = debugfs_create_dir("statistics",
@@ -70,8 +69,7 @@ int fnic_debugfs_init(void)
		fc_trc_flag->fc_clear = 4;
	}

	rc = 0;
	return rc;
	return 0;
}

/*