OSDN Git Service

scsi: pmcraid: remove redundant initializations of pointer 'ioadl'
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Feb 2018 14:34:10 +0000 (14:34 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Feb 2018 02:37:06 +0000 (21:37 -0500)
commitb22ee87d84296233886139654e8a125d8f79b44e
tree8f2f5544a34805662ac4baf42a947cc242b2bf59
parent2976fbb6a7aff04076d13d2a37e4b8dbe0d6fd4c
scsi: pmcraid: remove redundant initializations of pointer 'ioadl'

There are several occurrances where pointer ioadl is initialized with a
value that is never read and where it is re-assigned a new value later
on, hence the initialization is redundant and can be removed.

Cleans up clang warnings:
drivers/scsi/pmcraid.c:1028:29: warning: Value stored to 'ioadl' during
its initialization is never read
drivers/scsi/pmcraid.c:3178:29: warning: Value stored to 'ioadl' during
its initialization is never read
drivers/scsi/pmcraid.c:5495:29: warning: Value stored to 'ioadl' during
its initialization is never read
drivers/scsi/pmcraid.c:5668:29: warning: Value stored to 'ioadl' 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>
drivers/scsi/pmcraid.c