* [PATCH] usb-core: Remove Fix mes in file hcd.c
@ 2014-07-18 17:34 Nicholas Krause
2014-07-18 19:09 ` Alan Stern
2014-07-19 2:36 ` Sasha Levin
0 siblings, 2 replies; 10+ messages in thread
From: Nicholas Krause @ 2014-07-18 17:34 UTC (permalink / raw)
To: gregkh
Cc: stern, mail, hdegoede, dan.j.williams, valentine.barshak,
ming.lei, michael.opdenacker, linux-usb, linux-kernel
I am removing two fix mes in this file as after dicussing then it seems
there is no reason to check against Null for usb_device as it can never
be NULL and this is check is therefore not needed.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/usb/core/hcd.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index bec31e2..487abcf 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -855,8 +855,6 @@ static ssize_t authorized_default_show(struct device *dev,
struct usb_bus *usb_bus = rh_usb_dev->bus;
struct usb_hcd *usb_hcd;
- if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
- return -ENODEV;
usb_hcd = bus_to_hcd(usb_bus);
return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
}
@@ -871,8 +869,6 @@ static ssize_t authorized_default_store(struct device *dev,
struct usb_bus *usb_bus = rh_usb_dev->bus;
struct usb_hcd *usb_hcd;
- if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
- return -ENODEV;
usb_hcd = bus_to_hcd(usb_bus);
result = sscanf(buf, "%u\n", &val);
if (result == 1) {
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-18 17:34 [PATCH] usb-core: Remove Fix mes in file hcd.c Nicholas Krause
@ 2014-07-18 19:09 ` Alan Stern
2014-07-18 19:55 ` Nick Krause
2014-07-19 2:36 ` Sasha Levin
1 sibling, 1 reply; 10+ messages in thread
From: Alan Stern @ 2014-07-18 19:09 UTC (permalink / raw)
To: Nicholas Krause
Cc: gregkh, mail, hdegoede, dan.j.williams, valentine.barshak,
ming.lei, michael.opdenacker, linux-usb, linux-kernel
On Fri, 18 Jul 2014, Nicholas Krause wrote:
> I am removing two fix mes in this file as after dicussing then it seems
> there is no reason to check against Null for usb_device as it can never
> be NULL and this is check is therefore not needed.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> drivers/usb/core/hcd.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
> index bec31e2..487abcf 100644
> --- a/drivers/usb/core/hcd.c
> +++ b/drivers/usb/core/hcd.c
> @@ -855,8 +855,6 @@ static ssize_t authorized_default_show(struct device *dev,
> struct usb_bus *usb_bus = rh_usb_dev->bus;
> struct usb_hcd *usb_hcd;
>
> - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
> - return -ENODEV;
> usb_hcd = bus_to_hcd(usb_bus);
> return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
> }
> @@ -871,8 +869,6 @@ static ssize_t authorized_default_store(struct device *dev,
> struct usb_bus *usb_bus = rh_usb_dev->bus;
> struct usb_hcd *usb_hcd;
>
> - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
> - return -ENODEV;
> usb_hcd = bus_to_hcd(usb_bus);
> result = sscanf(buf, "%u\n", &val);
> if (result == 1) {
Acked-by: Alan Stern <stern@rowland.harvard.edu>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-18 19:09 ` Alan Stern
@ 2014-07-18 19:55 ` Nick Krause
0 siblings, 0 replies; 10+ messages in thread
From: Nick Krause @ 2014-07-18 19:55 UTC (permalink / raw)
To: Alan Stern
Cc: Greg KH, mail, hdegoede, dan.j.williams, valentine.barshak,
Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On Fri, Jul 18, 2014 at 3:09 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Fri, 18 Jul 2014, Nicholas Krause wrote:
>
>> I am removing two fix mes in this file as after dicussing then it seems
>> there is no reason to check against Null for usb_device as it can never
>> be NULL and this is check is therefore not needed.
>>
>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>> ---
>> drivers/usb/core/hcd.c | 4 ----
>> 1 file changed, 4 deletions(-)
>>
>> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
>> index bec31e2..487abcf 100644
>> --- a/drivers/usb/core/hcd.c
>> +++ b/drivers/usb/core/hcd.c
>> @@ -855,8 +855,6 @@ static ssize_t authorized_default_show(struct device *dev,
>> struct usb_bus *usb_bus = rh_usb_dev->bus;
>> struct usb_hcd *usb_hcd;
>>
>> - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
>> - return -ENODEV;
>> usb_hcd = bus_to_hcd(usb_bus);
>> return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
>> }
>> @@ -871,8 +869,6 @@ static ssize_t authorized_default_store(struct device *dev,
>> struct usb_bus *usb_bus = rh_usb_dev->bus;
>> struct usb_hcd *usb_hcd;
>>
>> - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */
>> - return -ENODEV;
>> usb_hcd = bus_to_hcd(usb_bus);
>> result = sscanf(buf, "%u\n", &val);
>> if (result == 1) {
>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>
>
Great to hear this is going through :).
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-18 17:34 [PATCH] usb-core: Remove Fix mes in file hcd.c Nicholas Krause
2014-07-18 19:09 ` Alan Stern
@ 2014-07-19 2:36 ` Sasha Levin
2014-07-19 2:45 ` Nick Krause
1 sibling, 1 reply; 10+ messages in thread
From: Sasha Levin @ 2014-07-19 2:36 UTC (permalink / raw)
To: Nicholas Krause, gregkh
Cc: stern, mail, hdegoede, dan.j.williams, valentine.barshak,
ming.lei, michael.opdenacker, linux-usb, linux-kernel
On 07/18/2014 01:34 PM, Nicholas Krause wrote:
> I am removing two fix mes in this file as after dicussing then it seems
> there is no reason to check against Null for usb_device as it can never
> be NULL and this is check is therefore not needed.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Please explain exactly why it's not needed, why it can never be NULL, and
what prevents it from being NULL.
"after dicussing" (do you run spellcheck on your mails?) won't mean anything
to someone looking at this commit in a year.
Your commit message also mentions usb_device which has nothing to do with
your patch.
Thanks,
Sasha
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-19 2:36 ` Sasha Levin
@ 2014-07-19 2:45 ` Nick Krause
2014-07-19 2:52 ` Nick Krause
0 siblings, 1 reply; 10+ messages in thread
From: Nick Krause @ 2014-07-19 2:45 UTC (permalink / raw)
To: Sasha Levin
Cc: Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
Sorry didn't run spell check. I will resend this patch with the
correct information
as needed. Thanks for the advice, Sasha.
Cheers Nick
On Fri, Jul 18, 2014 at 10:36 PM, Sasha Levin <sashal@kernel.org> wrote:
> On 07/18/2014 01:34 PM, Nicholas Krause wrote:
>> I am removing two fix mes in this file as after dicussing then it seems
>> there is no reason to check against Null for usb_device as it can never
>> be NULL and this is check is therefore not needed.
>>
>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>
> Please explain exactly why it's not needed, why it can never be NULL, and
> what prevents it from being NULL.
>
> "after dicussing" (do you run spellcheck on your mails?) won't mean anything
> to someone looking at this commit in a year.
>
> Your commit message also mentions usb_device which has nothing to do with
> your patch.
>
>
> Thanks,
> Sasha
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-19 2:45 ` Nick Krause
@ 2014-07-19 2:52 ` Nick Krause
2014-07-23 0:44 ` Sasha Levin
0 siblings, 1 reply; 10+ messages in thread
From: Nick Krause @ 2014-07-19 2:52 UTC (permalink / raw)
To: Sasha Levin
Cc: Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On Fri, Jul 18, 2014 at 10:45 PM, Nick Krause <xerofoify@gmail.com> wrote:
> Sorry didn't run spell check. I will resend this patch with the
> correct information
> as needed. Thanks for the advice, Sasha.
>
> Cheers Nick
>
> On Fri, Jul 18, 2014 at 10:36 PM, Sasha Levin <sashal@kernel.org> wrote:
>> On 07/18/2014 01:34 PM, Nicholas Krause wrote:
>>> I am removing two fix mes in this file as after dicussing then it seems
>>> there is no reason to check against Null for usb_device as it can never
>>> be NULL and this is check is therefore not needed.
>>>
>>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>>
>> Please explain exactly why it's not needed, why it can never be NULL, and
>> what prevents it from being NULL.
>>
>> "after dicussing" (do you run spellcheck on your mails?) won't mean anything
>> to someone looking at this commit in a year.
>>
>> Your commit message also mentions usb_device which has nothing to do with
>> your patch.
>>
>>
>> Thanks,
>> Sasha
Sasha ,
Greg seems to have signed it off.
Cheers Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-19 2:52 ` Nick Krause
@ 2014-07-23 0:44 ` Sasha Levin
2014-07-23 3:24 ` Nick Krause
0 siblings, 1 reply; 10+ messages in thread
From: Sasha Levin @ 2014-07-23 0:44 UTC (permalink / raw)
To: Nick Krause
Cc: Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On 07/18/2014 10:52 PM, Nick Krause wrote:
> On Fri, Jul 18, 2014 at 10:45 PM, Nick Krause <xerofoify@gmail.com> wrote:
>> Sorry didn't run spell check. I will resend this patch with the
>> correct information
>> as needed. Thanks for the advice, Sasha.
>>
>> Cheers Nick
>>
>> On Fri, Jul 18, 2014 at 10:36 PM, Sasha Levin <sashal@kernel.org> wrote:
>>> On 07/18/2014 01:34 PM, Nicholas Krause wrote:
>>>> I am removing two fix mes in this file as after dicussing then it seems
>>>> there is no reason to check against Null for usb_device as it can never
>>>> be NULL and this is check is therefore not needed.
>>>>
>>>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>>>
>>> Please explain exactly why it's not needed, why it can never be NULL, and
>>> what prevents it from being NULL.
>>>
>>> "after dicussing" (do you run spellcheck on your mails?) won't mean anything
>>> to someone looking at this commit in a year.
>>>
>>> Your commit message also mentions usb_device which has nothing to do with
>>> your patch.
>>>
>>>
>>> Thanks,
>>> Sasha
>
> Sasha ,
> Greg seems to have signed it off.
> Cheers Nick
Greg?
Even if the patch is correct (and I'm not saying it is) the commit message is way off.
Thanks,
Sasha
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-23 0:44 ` Sasha Levin
@ 2014-07-23 3:24 ` Nick Krause
2014-07-24 13:07 ` Vlastimil Babka
0 siblings, 1 reply; 10+ messages in thread
From: Nick Krause @ 2014-07-23 3:24 UTC (permalink / raw)
To: Sasha Levin
Cc: Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On Tue, Jul 22, 2014 at 8:44 PM, Sasha Levin <sashal@kernel.org> wrote:
> On 07/18/2014 10:52 PM, Nick Krause wrote:
>> On Fri, Jul 18, 2014 at 10:45 PM, Nick Krause <xerofoify@gmail.com> wrote:
>>> Sorry didn't run spell check. I will resend this patch with the
>>> correct information
>>> as needed. Thanks for the advice, Sasha.
>>>
>>> Cheers Nick
>>>
>>> On Fri, Jul 18, 2014 at 10:36 PM, Sasha Levin <sashal@kernel.org> wrote:
>>>> On 07/18/2014 01:34 PM, Nicholas Krause wrote:
>>>>> I am removing two fix mes in this file as after dicussing then it seems
>>>>> there is no reason to check against Null for usb_device as it can never
>>>>> be NULL and this is check is therefore not needed.
>>>>>
>>>>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>>>>
>>>> Please explain exactly why it's not needed, why it can never be NULL, and
>>>> what prevents it from being NULL.
>>>>
>>>> "after dicussing" (do you run spellcheck on your mails?) won't mean anything
>>>> to someone looking at this commit in a year.
>>>>
>>>> Your commit message also mentions usb_device which has nothing to do with
>>>> your patch.
>>>>
>>>>
>>>> Thanks,
>>>> Sasha
>>
>> Sasha ,
>> Greg seems to have signed it off.
>> Cheers Nick
>
> Greg?
>
> Even if the patch is correct (and I'm not saying it is) the commit message is way off.
>
>
> Thanks,
> Sasha
Sasha,
The patch is in the kernel now. I am not going through the trouble of removing
it, if you want to fix the commit message go on ahead.
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-23 3:24 ` Nick Krause
@ 2014-07-24 13:07 ` Vlastimil Babka
2014-07-24 16:17 ` Nick Krause
0 siblings, 1 reply; 10+ messages in thread
From: Vlastimil Babka @ 2014-07-24 13:07 UTC (permalink / raw)
To: Nick Krause, Sasha Levin
Cc: Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On 07/23/2014 05:24 AM, Nick Krause wrote:
> On Tue, Jul 22, 2014 at 8:44 PM, Sasha Levin <sashal@kernel.org> wrote:
>> On 07/18/2014 10:52 PM, Nick Krause wrote:
>>>>> Please explain exactly why it's not needed, why it can never be NULL, and
>>>>> what prevents it from being NULL.
>>>>>
>>>>> "after dicussing" (do you run spellcheck on your mails?) won't mean anything
>>>>> to someone looking at this commit in a year.
>>>>>
>>>>> Your commit message also mentions usb_device which has nothing to do with
>>>>> your patch.
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Sasha
>>>
>>> Sasha ,
>>> Greg seems to have signed it off.
>>> Cheers Nick
>>
>> Greg?
>>
>> Even if the patch is correct (and I'm not saying it is) the commit message is way off.
>>
>>
>> Thanks,
>> Sasha
>
>
> Sasha,
> The patch is in the kernel now.
Greg's tree is not Linus' tree, so it's not set to stone in git commit
history yet.
> I am not going through the trouble of removing
> it, if you want to fix the commit message go on ahead.
> Nick
This kind of attitude might significantly lower your chances of future
patches being accepted.
Vlastimil
> --
> 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/
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] usb-core: Remove Fix mes in file hcd.c
2014-07-24 13:07 ` Vlastimil Babka
@ 2014-07-24 16:17 ` Nick Krause
0 siblings, 0 replies; 10+ messages in thread
From: Nick Krause @ 2014-07-24 16:17 UTC (permalink / raw)
To: Vlastimil Babka
Cc: Sasha Levin, Greg KH, Alan Stern, mail, hdegoede, dan.j.williams,
valentine.barshak, Ming Lei, Michael Opdenacker, linux-usb,
linux-kernel@vger.kernel.org
On Thu, Jul 24, 2014 at 9:07 AM, Vlastimil Babka <vbabka@suse.cz> wrote:
> On 07/23/2014 05:24 AM, Nick Krause wrote:
>>
>> On Tue, Jul 22, 2014 at 8:44 PM, Sasha Levin <sashal@kernel.org> wrote:
>>>
>>> On 07/18/2014 10:52 PM, Nick Krause wrote:
>>>>>>
>>>>>> Please explain exactly why it's not needed, why it can never be NULL,
>>>>>> and
>>>>>> what prevents it from being NULL.
>>>>>>
>>>>>> "after dicussing" (do you run spellcheck on your mails?) won't mean
>>>>>> anything
>>>>>> to someone looking at this commit in a year.
>>>>>>
>>>>>> Your commit message also mentions usb_device which has nothing to do
>>>>>> with
>>>>>> your patch.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Sasha
>>>>
>>>>
>>>> Sasha ,
>>>> Greg seems to have signed it off.
>>>> Cheers Nick
>>>
>>>
>>> Greg?
>>>
>>> Even if the patch is correct (and I'm not saying it is) the commit
>>> message is way off.
>>>
>>>
>>> Thanks,
>>> Sasha
>>
>>
>>
>> Sasha,
>> The patch is in the kernel now.
>
>
> Greg's tree is not Linus' tree, so it's not set to stone in git commit
> history yet.
>
>
>> I am not going through the trouble of removing
>>
>> it, if you want to fix the commit message go on ahead.
>> Nick
>
>
> This kind of attitude might significantly lower your chances of future
> patches being accepted.
>
> Vlastimil
>
>
>> --
>> 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/
>>
>
I thought Greg's tree get's directly into the mainline and after
checking it seems to me in
the mainline.
Cheers Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-07-24 16:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 17:34 [PATCH] usb-core: Remove Fix mes in file hcd.c Nicholas Krause
2014-07-18 19:09 ` Alan Stern
2014-07-18 19:55 ` Nick Krause
2014-07-19 2:36 ` Sasha Levin
2014-07-19 2:45 ` Nick Krause
2014-07-19 2:52 ` Nick Krause
2014-07-23 0:44 ` Sasha Levin
2014-07-23 3:24 ` Nick Krause
2014-07-24 13:07 ` Vlastimil Babka
2014-07-24 16:17 ` Nick Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).