Repository navigation
Commit cc74e31
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>1 parent a544523 commit cc74e31
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1745 | 1745 | | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | | - | |
| 1748 | + | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
1773 | | - | |
1774 | | - | |
| 1773 | + | |
1775 | 1774 | | |
1776 | 1775 | | |
1777 | 1776 | | |
| |||
1814 | 1813 | | |
1815 | 1814 | | |
1816 | 1815 | | |
1817 | | - | |
1818 | | - | |
| 1816 | + | |
1819 | 1817 | | |
1820 | 1818 | | |
1821 | 1819 | | |
| |||
0 commit comments