Skip to contentSkip to conversation

scsi: mptsas: remove duplicated assignment to pointer head

PATCH Applied Colin King 2 participants 2 messages Jan 16, 2018 – Jan 17, 2018

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 scsi: mptsas: remove duplicated assignment to pointer head

From: Colin Ian King <[email protected]>

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

---
 drivers/message/fusion/mptsas.c | 1 -
 1 file changed, 1 deletion(-)
drivers/message/fusion/mptsas.c +0 -1
index 345f6035599e..439ee9c5f535 100644
@@ -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;
 
Signature · 1 line
2.15.1
#1 lore raw

Colin,

Quoted 2 lines

The pointer head is re-assigned the same value twice, so remove the second redundant assignment.

Applied to 4.16/scsi-queue.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering