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)
commitb77b36cb7272ec5b9fb000e2ff18e947d9586a22
treea29210bc9f2e20af833b00993196ddd5b83457f2
parent019c0d66f66a8612bb867caf05e865a4766238a4
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