]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Simplify a debug statement
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:01:47 +0000 (20:01 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:06 +0000 (21:34 -0400)
commit063d7e7e79fb7e92e95f350a13733c6f48e2bfca
tree2f8e4df55c47694f0589eed43fe4c041444d0c73
parenta741066a5864122414a94afeff3f050de4a2eea5
scsi: qla2xxx: Simplify a debug statement

Read the FC port state once instead of twice. This patch fixes the
following Coverity complaint:

Unchecked return value (CHECKED_RETURN)
check_return: Calling atomic_read without checking return value (as is
done elsewhere 80 out of 92 times).

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_isr.c