Skip to content

Commit 9730ddf

Browse files
Colin Ian Kingmartinkpetersen
authored andcommitted
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: Colin Ian King <colin.king@canonical.com> Acked-by: Karan Tilak Kumar <kartilak@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 3cf92f4 commit 9730ddf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/scsi/fnic/fnic_debugfs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ static struct fc_trace_flag_type *fc_trc_flag;
5252
*/
5353
int fnic_debugfs_init(void)
5454
{
55-
int rc = -1;
5655
fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL);
5756

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

73-
rc = 0;
74-
return rc;
72+
return 0;
7573
}
7674

7775
/*

0 commit comments

Comments
 (0)