]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: misc: ftdi-elan: Simplify return statement
authorSaurabh Karajgaonkar <skarajga@visteon.com>
Tue, 4 Aug 2015 14:05:03 +0000 (14:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:37:21 +0000 (12:37 -0700)
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ftdi-elan.c

index 8ab1f8f3c26e6a2b7b3630b39356968ac98bf38d..52c27cab78c3e44d1927c7bcacebc7fbcf1f7c61 100644 (file)
@@ -2568,11 +2568,7 @@ static int ftdi_elan_close_controller(struct usb_ftdi *ftdi, int fn)
                                            0x00);
        if (UxxxStatus)
                return UxxxStatus;
-       UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 0,
-                                          &pcidata);
-       if (UxxxStatus)
-               return UxxxStatus;
-       return 0;
+       return ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, &pcidata);
 }
 
 static int ftdi_elan_found_controller(struct usb_ftdi *ftdi, int fn, int quirk)
@@ -2695,11 +2691,7 @@ static int ftdi_elan_setupOHCI(struct usb_ftdi *ftdi)
                }
        }
        if (ftdi->function > 0) {
-               UxxxStatus = ftdi_elan_setup_controller(ftdi,
-                                                       ftdi->function - 1);
-               if (UxxxStatus)
-                       return UxxxStatus;
-               return 0;
+               return ftdi_elan_setup_controller(ftdi, ftdi->function - 1);
        } else if (controllers > 0) {
                return -ENXIO;
        } else if (unrecognized > 0) {