diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-02-02 12:12:02 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-03 13:01:36 +0100 |
commit | de9a009b934a14b24d125e9ee150e2855580c3da (patch) | |
tree | f0b2d8d9d2c9f87a8f62002a57c9ce8538ad7257 /drivers/staging/rts5208 | |
parent | 041b67b389fc0118015e5adc62725d89127dcc71 (diff) | |
download | linux-de9a009b934a14b24d125e9ee150e2855580c3da.tar.gz linux-de9a009b934a14b24d125e9ee150e2855580c3da.tar.bz2 linux-de9a009b934a14b24d125e9ee150e2855580c3da.zip |
staging: rts5208: remove unncessary result set and check, just return SUCCESS
Minor clean up, there is no need to assign result to zero, then
check if it is less than zero. Just return SUCCESS.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r-- | drivers/staging/rts5208/rtsx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 68d75d0d5efd..b8177f50fabc 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -198,23 +198,21 @@ static int command_abort(struct scsi_cmnd *srb) */ static int device_reset(struct scsi_cmnd *srb) { - int result = 0; struct rtsx_dev *dev = host_to_rtsx(srb->device->host); dev_info(&dev->pci->dev, "%s called\n", __func__); - return result < 0 ? FAILED : SUCCESS; + return SUCCESS; } /* Simulate a SCSI bus reset by resetting the device's USB port. */ static int bus_reset(struct scsi_cmnd *srb) { - int result = 0; struct rtsx_dev *dev = host_to_rtsx(srb->device->host); dev_info(&dev->pci->dev, "%s called\n", __func__); - return result < 0 ? FAILED : SUCCESS; + return SUCCESS; } /* |