diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-24 15:58:01 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-31 03:24:07 +0100 |
commit | 52797a1d4b39716ddd300a3c463ffaf1330600a0 (patch) | |
tree | 3e5cc1b2295da923e8570e4bbf81511383b378e6 /drivers/scsi/csiostor/csio_lnode.c | |
parent | scsi: ufs: Enable quirk to ignore sending WRITE_SAME command (diff) | |
download | linux-52797a1d4b39716ddd300a3c463ffaf1330600a0.tar.xz linux-52797a1d4b39716ddd300a3c463ffaf1330600a0.zip |
scsi: csiostor: remove redundant assignment to pointer 'ln'
The pointer ln is assigned a value that is never read, it is re-assigned
a new value in the list_for_each loop hence the initialization is
redundant and can be removed.
Cleans up clang warning:
drivers/scsi/csiostor/csio_lnode.c:117:21: warning: Value stored to 'ln'
during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor/csio_lnode.c')
-rw-r--r-- | drivers/scsi/csiostor/csio_lnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_lnode.c b/drivers/scsi/csiostor/csio_lnode.c index be5ee2d37815..7dbbbb81a1e7 100644 --- a/drivers/scsi/csiostor/csio_lnode.c +++ b/drivers/scsi/csiostor/csio_lnode.c @@ -114,7 +114,7 @@ static enum csio_ln_ev fwevt_to_lnevt[] = { static struct csio_lnode * csio_ln_lookup_by_portid(struct csio_hw *hw, uint8_t portid) { - struct csio_lnode *ln = hw->rln; + struct csio_lnode *ln; struct list_head *tmp; /* Match siblings lnode with portid */ |