]> 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)
commit37327a94d6f2be54fa334018453eaa8a0e28f1c2
treea29210bc9f2e20af833b00993196ddd5b83457f2
parent8b628a2d79cabff6c1dcfe2719b73b04ac0e0f71
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