diff options
| author | Colin Ian King <[email protected]> | 2017-05-03 16:29:01 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-05-09 02:16:45 +0000 |
| commit | b77b36cb7272ec5b9fb000e2ff18e947d9586a22 (patch) | |
| tree | a29210bc9f2e20af833b00993196ddd5b83457f2 /drivers/scsi/pmcraid.c | |
| parent | scsi: lpfc: ensure els_wq is being checked before destroying it (diff) | |
| download | kernel-b77b36cb7272ec5b9fb000e2ff18e947d9586a22.tar.gz kernel-b77b36cb7272ec5b9fb000e2ff18e947d9586a22.zip | |
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 <[email protected]>
Reviewed-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
| -rw-r--r-- | drivers/scsi/pmcraid.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index a4aadf5f4dc6..1cc814f1505a 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -3770,9 +3770,6 @@ static long pmcraid_ioctl_passthrough( pmcraid_err("couldn't build passthrough ioadls\n"); goto out_free_cmd; } - } else if (request_size < 0) { - rc = -EINVAL; - goto out_free_cmd; } /* If data is being written into the device, copy the data from user |
