]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pmcraid: remove redundant check to see if request_size is less than zero
authorColin Ian King <colin.king@canonical.com>
Wed, 3 May 2017 16:29:01 +0000 (17:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 May 2017 02:16:45 +0000 (22:16 -0400)
commit55c3fce8b5320d22c2242dab2a59515906e35b20
treea29210bc9f2e20af833b00993196ddd5b83457f2
parentfe11000183d94f3e2be94e5a9d1bb57a67978da5
scsi: pmcraid: remove redundant check to see if request_size is less than zero

The 2nd check to see if request_size is less than zero is redundant
because the first check takes error exit path on this condition. So,
since it is redundant, remove it.

Detected by CoverityScan, CID#146149 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c