diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-16 20:08:15 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-17 07:19:38 +0100 |
commit | 4774bc9dce37199d8fcaa1ac0c8baaac1175f4a3 (patch) | |
tree | ae608a194f3565aaa1be1f2b50d84142aa4fb39a /drivers/message | |
parent | scsi: storvsc: missing error code in storvsc_probe() (diff) | |
download | linux-4774bc9dce37199d8fcaa1ac0c8baaac1175f4a3.tar.xz linux-4774bc9dce37199d8fcaa1ac0c8baaac1175f4a3.zip |
scsi: mptsas: remove duplicated assignment to pointer head
The pointer head is re-assigned the same value twice, so remove the
second redundant assignment.
Cleans up clang warning:
drivers/message/fusion/mptsas.c:1161:20: warning: Value stored to 'head'
during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 345f6035599e..439ee9c5f535 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1165,7 +1165,6 @@ mptsas_schedule_target_reset(void *iocp) * issue target reset to next device in the queue */ - head = &hd->target_reset_list; if (list_empty(head)) return; |