]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedf: Remove an unneeded NULL check on list iterator
authorXiaomeng Tong <xiam0nd.tong@gmail.com>
Tue, 5 Apr 2022 00:40:55 +0000 (08:40 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 12:37:35 +0000 (08:37 -0400)
commite3e28d52c1b04ebca75edb7028632d7f9c332c8c
treec6fc07910265a82313adac7d304061e125a4dd43
parentd07714d6e749c0452235bcedd1a2add7bcd4c5dd
scsi: qedf: Remove an unneeded NULL check on list iterator

The list iterator 'fcport' is always non-NULL so it doesn't need to be
checked. Thus just remove the unnecessary NULL check. Also remove the
unnecessary initializer because the list iterator is always initialized.
And adjust the position of blank lines.

Link: https://lore.kernel.org/r/20220405004055.24312-1-xiam0nd.tong@gmail.com
Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c