Home
last modified time | relevance | path

Searched hist:cc74e31d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_nvmet.ccc74e31d Fri Jul 13 03:39:54 CDT 2018 Colin Ian King <colin.king@canonical.com> scsi: lpfc: remove null check on nvmebuf

The null checks on nvmebuf are redundant as nvmebuf is always obtained from
a container_of() and hence can never be null. Remove all the redundant null
checks. This also cleans up a static analysis warning.

Detected by CoverityScan, CID#1471753 ("Dereference before null check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
cc74e31d Fri Jul 13 03:39:54 CDT 2018 Colin Ian King <colin.king@canonical.com> scsi: lpfc: remove null check on nvmebuf

The null checks on nvmebuf are redundant as nvmebuf is always obtained from
a container_of() and hence can never be null. Remove all the redundant null
checks. This also cleans up a static analysis warning.

Detected by CoverityScan, CID#1471753 ("Dereference before null check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>