public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context'
@ 2024-05-29  0:08 linux
  2024-06-01 12:52 ` Philipp Hortmann
  0 siblings, 1 reply; 4+ messages in thread
From: linux @ 2024-05-29  0:08 UTC (permalink / raw)
  To: Larry.Finger, florian.c.schilhabel, gregkh
  Cc: linux-staging, linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

'zero_bulkout_context' is unused since the original
commit 2865d42c78a9 ("staging: r8712u: Add the new driver to the
mainline kernel").

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/staging/rtl8712/usb_ops_linux.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c
index b2181e1e2d38..0a3451cdc8a1 100644
--- a/drivers/staging/rtl8712/usb_ops_linux.c
+++ b/drivers/staging/rtl8712/usb_ops_linux.c
@@ -26,13 +26,6 @@
 #define	RTL871X_VENQT_READ	0xc0
 #define	RTL871X_VENQT_WRITE	0x40
 
-struct zero_bulkout_context {
-	void *pbuf;
-	void *purb;
-	void *pirp;
-	void *padapter;
-};
-
 uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv)
 {
 	pintfpriv->piorw_urb = usb_alloc_urb(0, GFP_ATOMIC);
-- 
2.45.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context'
  2024-05-29  0:08 [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context' linux
@ 2024-06-01 12:52 ` Philipp Hortmann
  2024-06-01 13:17   ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 4+ messages in thread
From: Philipp Hortmann @ 2024-06-01 12:52 UTC (permalink / raw)
  To: linux, Larry.Finger, florian.c.schilhabel, gregkh
  Cc: linux-staging, linux-kernel

On 5/29/24 02:08, linux@treblig.org wrote:

please remove the following line:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
To me it is not important which commit introduced the struct. This is 
not a bug. So I would omit this lines and use instead just:
Remove struct zero_bulkout_context as it is unused.
> 'zero_bulkout_context' is unused since the original
> commit 2865d42c78a9 ("staging: r8712u: Add the new driver to the
> mainline kernel").
> 
please remove the following line:
> Remove it. >
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
>   drivers/staging/rtl8712/usb_ops_linux.c | 7 -------
>   1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c
> index b2181e1e2d38..0a3451cdc8a1 100644
> --- a/drivers/staging/rtl8712/usb_ops_linux.c
> +++ b/drivers/staging/rtl8712/usb_ops_linux.c
> @@ -26,13 +26,6 @@
>   #define	RTL871X_VENQT_READ	0xc0
>   #define	RTL871X_VENQT_WRITE	0x40
>   
> -struct zero_bulkout_context {
> -	void *pbuf;
> -	void *purb;
> -	void *pirp;
> -	void *padapter;
> -};
> -
>   uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv)
>   {
>   	pintfpriv->piorw_urb = usb_alloc_urb(0, GFP_ATOMIC);


Hi David,

I would prefer the following changes:
Subject: please change from r8712u which is the compiled driver name to 
folder name of the driver: rtl8712

Please also consider the above hints.

If you send in a second version of this patch please use a change 
history. Description from Dan under:
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/

Please contact me for any questions.

Thanks for your support.

Bye Philipp



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context'
  2024-06-01 12:52 ` Philipp Hortmann
@ 2024-06-01 13:17   ` Dr. David Alan Gilbert
  2024-06-01 14:50     ` Philipp Hortmann
  0 siblings, 1 reply; 4+ messages in thread
From: Dr. David Alan Gilbert @ 2024-06-01 13:17 UTC (permalink / raw)
  To: Philipp Hortmann
  Cc: Larry.Finger, florian.c.schilhabel, gregkh, linux-staging,
	linux-kernel

* Philipp Hortmann (philipp.g.hortmann@gmail.com) wrote:
> On 5/29/24 02:08, linux@treblig.org wrote:
> 
> please remove the following line:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> To me it is not important which commit introduced the struct. This is not a
> bug. So I would omit this lines and use instead just:
> Remove struct zero_bulkout_context as it is unused.
> > 'zero_bulkout_context' is unused since the original
> > commit 2865d42c78a9 ("staging: r8712u: Add the new driver to the
> > mainline kernel").
> > 
> please remove the following line:
> > Remove it. >

v2 sent just now with changes as requested.
(Although I think you're the only person who has asked
to remove that detail, most seem to like it as a hint
as to whether there's some reason it's unused).

Dave

> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > ---
> >   drivers/staging/rtl8712/usb_ops_linux.c | 7 -------
> >   1 file changed, 7 deletions(-)
> > 
> > diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c
> > index b2181e1e2d38..0a3451cdc8a1 100644
> > --- a/drivers/staging/rtl8712/usb_ops_linux.c
> > +++ b/drivers/staging/rtl8712/usb_ops_linux.c
> > @@ -26,13 +26,6 @@
> >   #define	RTL871X_VENQT_READ	0xc0
> >   #define	RTL871X_VENQT_WRITE	0x40
> > -struct zero_bulkout_context {
> > -	void *pbuf;
> > -	void *purb;
> > -	void *pirp;
> > -	void *padapter;
> > -};
> > -
> >   uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv)
> >   {
> >   	pintfpriv->piorw_urb = usb_alloc_urb(0, GFP_ATOMIC);
> 
> 
> Hi David,
> 
> I would prefer the following changes:
> Subject: please change from r8712u which is the compiled driver name to
> folder name of the driver: rtl8712
> 
> Please also consider the above hints.
> 
> If you send in a second version of this patch please use a change history.
> Description from Dan under:
> https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
> 
> Please contact me for any questions.
> 
> Thanks for your support.
> 
> Bye Philipp
> 
> 
> 
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context'
  2024-06-01 13:17   ` Dr. David Alan Gilbert
@ 2024-06-01 14:50     ` Philipp Hortmann
  0 siblings, 0 replies; 4+ messages in thread
From: Philipp Hortmann @ 2024-06-01 14:50 UTC (permalink / raw)
  To: Dr. David Alan Gilbert
  Cc: Larry.Finger, florian.c.schilhabel, gregkh, linux-staging,
	linux-kernel

On 6/1/24 15:17, Dr. David Alan Gilbert wrote:
> * Philipp Hortmann (philipp.g.hortmann@gmail.com) wrote:
>> On 5/29/24 02:08, linux@treblig.org wrote:
>>
>> please remove the following line:
>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>>>
>> To me it is not important which commit introduced the struct. This is not a
>> bug. So I would omit this lines and use instead just:
>> Remove struct zero_bulkout_context as it is unused.
>>> 'zero_bulkout_context' is unused since the original
>>> commit 2865d42c78a9 ("staging: r8712u: Add the new driver to the
>>> mainline kernel").
>>>
>> please remove the following line:
>>> Remove it. >
> 
> v2 sent just now with changes as requested.
> (Although I think you're the only person who has asked
> to remove that detail, most seem to like it as a hint
> as to whether there's some reason it's unused).
> 
> Dave

May be you are right. But may be they are just happy that they do not 
have to respond to mails for the drivers named in this email:
https://lore.kernel.org/linux-staging/623629d4-87ad-4e7d-b4f7-2d10e0c02a2d@gmail.com/
Please consider that reviewers and testers are always wanted.

That only one person responses for simple changes is not so uncommon.

Thanks for your support.

Philipp



> 
>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>>> ---
>>>    drivers/staging/rtl8712/usb_ops_linux.c | 7 -------
>>>    1 file changed, 7 deletions(-)
>>>
>>> diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c
>>> index b2181e1e2d38..0a3451cdc8a1 100644
>>> --- a/drivers/staging/rtl8712/usb_ops_linux.c
>>> +++ b/drivers/staging/rtl8712/usb_ops_linux.c
>>> @@ -26,13 +26,6 @@
>>>    #define	RTL871X_VENQT_READ	0xc0
>>>    #define	RTL871X_VENQT_WRITE	0x40
>>> -struct zero_bulkout_context {
>>> -	void *pbuf;
>>> -	void *purb;
>>> -	void *pirp;
>>> -	void *padapter;
>>> -};
>>> -
>>>    uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv)
>>>    {
>>>    	pintfpriv->piorw_urb = usb_alloc_urb(0, GFP_ATOMIC);
>>
>>
>> Hi David,
>>
>> I would prefer the following changes:
>> Subject: please change from r8712u which is the compiled driver name to
>> folder name of the driver: rtl8712
>>
>> Please also consider the above hints.
>>
>> If you send in a second version of this patch please use a change history.
>> Description from Dan under:
>> https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
>>
>> Please contact me for any questions.
>>
>> Thanks for your support.
>>
>> Bye Philipp
>>
>>
>>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-01 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  0:08 [PATCH] staging: r8712u: remove unused struct 'zero_bulkout_context' linux
2024-06-01 12:52 ` Philipp Hortmann
2024-06-01 13:17   ` Dr. David Alan Gilbert
2024-06-01 14:50     ` Philipp Hortmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox