]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: rts5208: remove unncessary result set and check, just return SUCCESS
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Feb 2017 12:12:02 +0000 (12:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:36 +0000 (13:01 +0100)
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>
drivers/staging/rts5208/rtsx.c

index 68d75d0d5efd0c394145a2df802d0a12c490b459..b8177f50fabcbb1d3b084550119e9572e02943b3 100644 (file)
@@ -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;
 }
 
 /*