Commit a53870c0 authored by Saurabh Karajgaonkar's avatar Saurabh Karajgaonkar Committed by Greg Kroah-Hartman

usb: misc: ftdi-elan: Simplify return statement

Replace redundant variable use in return statement.
Signed-off-by: default avatarSaurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb82122a
...@@ -2568,11 +2568,7 @@ static int ftdi_elan_close_controller(struct usb_ftdi *ftdi, int fn) ...@@ -2568,11 +2568,7 @@ static int ftdi_elan_close_controller(struct usb_ftdi *ftdi, int fn)
0x00); 0x00);
if (UxxxStatus) if (UxxxStatus)
return UxxxStatus; return UxxxStatus;
UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, return ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, &pcidata);
&pcidata);
if (UxxxStatus)
return UxxxStatus;
return 0;
} }
static int ftdi_elan_found_controller(struct usb_ftdi *ftdi, int fn, int quirk) 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) ...@@ -2695,11 +2691,7 @@ static int ftdi_elan_setupOHCI(struct usb_ftdi *ftdi)
} }
} }
if (ftdi->function > 0) { if (ftdi->function > 0) {
UxxxStatus = ftdi_elan_setup_controller(ftdi, return ftdi_elan_setup_controller(ftdi, ftdi->function - 1);
ftdi->function - 1);
if (UxxxStatus)
return UxxxStatus;
return 0;
} else if (controllers > 0) { } else if (controllers > 0) {
return -ENXIO; return -ENXIO;
} else if (unrecognized > 0) { } else if (unrecognized > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment