Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1201131

Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and returns in HCI/SCI functions

From Darren Hart <dvhart@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and returns in HCI/SCI functions
Date 2015-08-05 22:30 +0200
Message-ID <pUdu3-3Ci-25@gated-at.bofh.it> (permalink)
References <pSw7L-1pB-3@gated-at.bofh.it> <pSw7L-1pB-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> @@ -1131,14 +1055,10 @@ static int toshiba_usb_three_set(struct toshiba_acpi_dev *dev, u32 state)
>  
>  	result = sci_write(dev, SCI_USB_THREE, state);
>  	sci_close(dev);
> -	if (result == TOS_FAILURE) {
> +	if (result == TOS_FAILURE)
>  		pr_err("ACPI call to set USB 3 failed\n");
> -		return -EIO;
> -	} else if (result == TOS_NOT_SUPPORTED) {
> +	else if (result == TOS_NOT_SUPPORTED)
>  		return -ENODEV;
> -	} else if (result == TOS_INPUT_DATA_ERROR) {
> -		return -EIO;
> -	}
>  
>  	return (result == TOS_SUCCESS || result == TOS_SUCCESS2) 0 : -EIO;

Hrm... the above line cause patch application failure via git (note the
missing ? before the '0 : -EIO;'). This never existed upstream so far as
I can determine.

It applied with some fuzz manually, but I'm concerned about how this
happened.  Did you have a dirty tree when you prepared these patches
perhaps?

-- 
Darren Hart
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and  returns in HCI/SCI functions Darren Hart <dvhart@infradead.org> - 2015-08-05 22:30 +0200
  Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and  returns in HCI/SCI functions Azael Avalos <coproscefalo@gmail.com> - 2015-08-06 00:30 +0200
    Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and  returns in HCI/SCI functions Darren Hart <dvhart@infradead.org> - 2015-08-06 01:30 +0200
      Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and  returns in HCI/SCI functions Azael Avalos <coproscefalo@gmail.com> - 2015-08-06 18:30 +0200
        Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and  returns in HCI/SCI functions Darren Hart <dvhart@infradead.org> - 2015-08-06 19:20 +0200

csiph-web