Skip to content

Commit

Permalink
scsi: mptsas: remove duplicated assignment to pointer head
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Martin K. Petersen committed Jan 17, 2018
1 parent ca8dc69 commit 4774bc9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4774bc9

Please sign in to comment.