All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723au: Fixes unnecessary return warning
@ 2016-01-29 17:29 Bhaktipriya Shridhar
  2016-01-29 18:00 ` Jes Sorensen
  0 siblings, 1 reply; 11+ messages in thread
From: Bhaktipriya Shridhar @ 2016-01-29 17:29 UTC (permalink / raw)
  To: Larry Finger, Jes Sorensen, Greg Kroah-Hartman, Joe Perches,
	Bhaktipriya Shridhar, Alexander Kuleshov, Haneen Mohammed,
	Andreas Ruprecht
  Cc: linux-wireless, devel, linux-kernel

This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
WARNING: void function return statements are not generally useful

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
index d28f29a..e8a16b9 100644
--- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
@@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)

 	dump_mgntframe23a(padapter, pmgntframe);

-	return;
 }

 static int _issue_probereq(struct rtw_adapter *padapter,
@@ -2958,7 +2957,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
 	DBG_8723A("%s\n", __func__);
 	dump_mgntframe23a(padapter, pmgntframe);

-	return;
 }

 #ifdef CONFIG_8723AU_AP_MODE
@@ -3339,7 +3337,6 @@ exit:
 	} else
 		kfree(pmlmepriv->assoc_req);

-	return;
 }

 /* when wait_ack is true, this function should be called at process context */
@@ -4103,7 +4100,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter)
 		pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
 	}

-	return;
 }

 /* collect bss info from Beacon and Probe request/response frames. */
@@ -4760,7 +4756,6 @@ void report_survey_event23a(struct rtw_adapter *padapter,

 	pmlmeext->sitesurvey_res.bss_cnt++;

-	return;
 }

 void report_surveydone_event23a(struct rtw_adapter *padapter)
@@ -4803,7 +4798,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)

 	rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);

-	return;
 }

 void report_join_res23a(struct rtw_adapter *padapter, int res)
@@ -4851,7 +4845,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)

 	rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);

-	return;
 }

 void report_del_sta_event23a(struct rtw_adapter *padapter,
@@ -4907,7 +4900,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,

 	rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);

-	return;
 }

 void report_add_sta_event23a(struct rtw_adapter *padapter,
@@ -4952,7 +4944,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter,

 	rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);

-	return;
 }

 /****************************************************************************
@@ -5395,7 +5386,6 @@ static void link_timer_hdl(unsigned long data)
 		set_link_timer(pmlmeext, REASSOC_TO);
 	}

-	return;
 }

 static void addba_timer_hdl(unsigned long data)
--
2.1.4


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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-29 17:29 [PATCH] staging: rtl8723au: Fixes unnecessary return warning Bhaktipriya Shridhar
@ 2016-01-29 18:00 ` Jes Sorensen
  2016-01-29 23:17   ` Julian Calaby
  0 siblings, 1 reply; 11+ messages in thread
From: Jes Sorensen @ 2016-01-29 18:00 UTC (permalink / raw)
  To: Bhaktipriya Shridhar
  Cc: Larry Finger, Greg Kroah-Hartman, Joe Perches,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
> This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
> WARNING: void function return statements are not generally useful
>
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---
>  drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> index d28f29a..e8a16b9 100644
> --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> @@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
>
>  	dump_mgntframe23a(padapter, pmgntframe);
>
> -	return;
>  }

If you insist on pushing this rather unncessary change, please do it
properly, and remove the blank line before the return statement as well.

Jes

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-29 18:00 ` Jes Sorensen
@ 2016-01-29 23:17   ` Julian Calaby
  2016-01-30  1:28     ` Joe Perches
  2016-01-31 14:31     ` Jes Sorensen
  0 siblings, 2 replies; 11+ messages in thread
From: Julian Calaby @ 2016-01-29 23:17 UTC (permalink / raw)
  To: Bhaktipriya Shridhar
  Cc: Jes Sorensen, Larry Finger, Greg Kroah-Hartman, Joe Perches,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

Hi Bhaktipriya,

On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
>> This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
>> WARNING: void function return statements are not generally useful
>>
>> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
>> ---
>>  drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 10 ----------
>>  1 file changed, 10 deletions(-)
>>
>> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
>> index d28f29a..e8a16b9 100644
>> --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
>> +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
>> @@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
>>
>>       dump_mgntframe23a(padapter, pmgntframe);
>>
>> -     return;
>>  }
>
> If you insist on pushing this rather unncessary change, please do it
> properly, and remove the blank line before the return statement as well.

As Jes said, you need to remove the blank lines before the returns
too. checkpatch should have picked this up, you did run the patch
through checkpatch before you sent it, right?

Jes,

I know you have strong feelings on coding style, but there are a lot
of people out there who see deviations from the standard as bugs to be
fixed, so stuff like this isn't going to stop until it matches the
coding style document's spec.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-29 23:17   ` Julian Calaby
@ 2016-01-30  1:28     ` Joe Perches
  2016-01-30  3:09       ` Julian Calaby
  2016-01-31 14:31     ` Jes Sorensen
  1 sibling, 1 reply; 11+ messages in thread
From: Joe Perches @ 2016-01-30  1:28 UTC (permalink / raw)
  To: Julian Calaby, Bhaktipriya Shridhar
  Cc: Jes Sorensen, Larry Finger, Greg Kroah-Hartman,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

On Sat, 2016-01-30 at 10:17 +1100, Julian Calaby wrote:
> On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> > Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
> > > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
> > > WARNING: void function return statements are not generally useful
[]
> > > diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
[]
> > > @@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
> > > 
> > >       dump_mgntframe23a(padapter, pmgntframe);
> > > 
> > > -     return;
> > >  }
> > 
> > If you insist on pushing this rather unncessary change, please do it
> > properly, and remove the blank line before the return statement as well.
> 
> As Jes said, you need to remove the blank lines before the returns
> too. checkpatch should have picked this up, you did run the patch
> through checkpatch before you sent it, right?

checkpatch doesn't pick this up.

If you'd like to make it do so, you're welcome to try
but it's likely a bit more complicated than it appears.


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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30  1:28     ` Joe Perches
@ 2016-01-30  3:09       ` Julian Calaby
  2016-01-30  3:18         ` Joe Perches
  0 siblings, 1 reply; 11+ messages in thread
From: Julian Calaby @ 2016-01-30  3:09 UTC (permalink / raw)
  To: Joe Perches
  Cc: Bhaktipriya Shridhar, Jes Sorensen, Larry Finger,
	Greg Kroah-Hartman, Alexander Kuleshov, Haneen Mohammed,
	Andreas Ruprecht, linux-wireless, devel, linux-kernel

Hi Joe,

On Sat, Jan 30, 2016 at 12:28 PM, Joe Perches <joe@perches.com> wrote:
> On Sat, 2016-01-30 at 10:17 +1100, Julian Calaby wrote:
>> On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
>> > Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
>> > > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
>> > > WARNING: void function return statements are not generally useful
> []
>> > > diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> []
>> > > @@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
>> > >
>> > >       dump_mgntframe23a(padapter, pmgntframe);
>> > >
>> > > -     return;
>> > >  }
>> >
>> > If you insist on pushing this rather unncessary change, please do it
>> > properly, and remove the blank line before the return statement as well.
>>
>> As Jes said, you need to remove the blank lines before the returns
>> too. checkpatch should have picked this up, you did run the patch
>> through checkpatch before you sent it, right?
>
> checkpatch doesn't pick this up.
>
> If you'd like to make it do so, you're welcome to try
> but it's likely a bit more complicated than it appears.

I meant the extra blank lines, not the useless return statements.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30  3:09       ` Julian Calaby
@ 2016-01-30  3:18         ` Joe Perches
  2016-01-30  6:53           ` Bhakti Priya
  0 siblings, 1 reply; 11+ messages in thread
From: Joe Perches @ 2016-01-30  3:18 UTC (permalink / raw)
  To: Julian Calaby
  Cc: Bhaktipriya Shridhar, Jes Sorensen, Larry Finger,
	Greg Kroah-Hartman, Alexander Kuleshov, Haneen Mohammed,
	Andreas Ruprecht, linux-wireless, devel, linux-kernel

On Sat, 2016-01-30 at 14:09 +1100, Julian Calaby wrote:
> Hi Joe,

Hello Julian.

> On Sat, Jan 30, 2016 at 12:28 PM, Joe Perches <joe@perches.com>
> wrote:
> > On Sat, 2016-01-30 at 10:17 +1100, Julian Calaby wrote:
> > > On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redha
> > > t.com> wrote:
> > > > Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
> > > > > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c
> > > > > file.
> > > > > WARNING: void function return statements are not generally
> > > > > useful
> > []
> > > > > diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> > > > > b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> > []
> > > > > @@ -2657,7 +2657,6 @@ static void issue_probersp(struct
> > > > > rtw_adapter *padapter, unsigned char *da)
> > > > > 
> > > > >       dump_mgntframe23a(padapter, pmgntframe);
> > > > > 
> > > > > -     return;
> > > > >  }
> > > > 
> > > > If you insist on pushing this rather unncessary change, please
> > > > do it
> > > > properly, and remove the blank line before the return statement
> > > > as well.
> > > 
> > > As Jes said, you need to remove the blank lines before the
> > > returns
> > > too. checkpatch should have picked this up, you did run the patch
> > > through checkpatch before you sent it, right?
> > 
> > checkpatch doesn't pick this up.
> > 
> > If you'd like to make it do so, you're welcome to try
> > but it's likely a bit more complicated than it appears.
> 
> I meant the extra blank lines, not the useless return statements.

I understood what you meant.

It's relatively difficult to determine that a line removal
patch causes a blank line to appear before a closing brace.

You're welcome to extend checkpatch to find these things,
but there are likely many additional patch types that need
to be considered.  Remember patches can add, modify and
delete lines.

cheers, Joe

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30  3:18         ` Joe Perches
@ 2016-01-30  6:53           ` Bhakti Priya
  2016-01-30  7:24             ` Joe Perches
  2016-01-30 12:02             ` Julian Calaby
  0 siblings, 2 replies; 11+ messages in thread
From: Bhakti Priya @ 2016-01-30  6:53 UTC (permalink / raw)
  To: Joe Perches
  Cc: Julian Calaby, Jes Sorensen, Larry Finger, Greg Kroah-Hartman,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

Hi,

Thank you for your reply. I've just sent version 2 of the patch with
the blank lines removed.
I will be happy to extend checkpatch.pl. As suggested by you, I am
trying to detect such blank lines in a line removal patch by checking
if the line above the deleted line was a blank line and the line
following the deleted line had a closing brace.
Can you please guide me and let me know if I am headed in the right direction.

Thanks,
Bhaktipriya


On Sat, Jan 30, 2016 at 8:48 AM, Joe Perches <joe@perches.com> wrote:
> On Sat, 2016-01-30 at 14:09 +1100, Julian Calaby wrote:
>> Hi Joe,
>
> Hello Julian.
>
>> On Sat, Jan 30, 2016 at 12:28 PM, Joe Perches <joe@perches.com>
>> wrote:
>> > On Sat, 2016-01-30 at 10:17 +1100, Julian Calaby wrote:
>> > > On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redha
>> > > t.com> wrote:
>> > > > Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
>> > > > > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c
>> > > > > file.
>> > > > > WARNING: void function return statements are not generally
>> > > > > useful
>> > []
>> > > > > diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
>> > > > > b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
>> > []
>> > > > > @@ -2657,7 +2657,6 @@ static void issue_probersp(struct
>> > > > > rtw_adapter *padapter, unsigned char *da)
>> > > > >
>> > > > >       dump_mgntframe23a(padapter, pmgntframe);
>> > > > >
>> > > > > -     return;
>> > > > >  }
>> > > >
>> > > > If you insist on pushing this rather unncessary change, please
>> > > > do it
>> > > > properly, and remove the blank line before the return statement
>> > > > as well.
>> > >
>> > > As Jes said, you need to remove the blank lines before the
>> > > returns
>> > > too. checkpatch should have picked this up, you did run the patch
>> > > through checkpatch before you sent it, right?
>> >
>> > checkpatch doesn't pick this up.
>> >
>> > If you'd like to make it do so, you're welcome to try
>> > but it's likely a bit more complicated than it appears.
>>
>> I meant the extra blank lines, not the useless return statements.
>
> I understood what you meant.
>
> It's relatively difficult to determine that a line removal
> patch causes a blank line to appear before a closing brace.
>
> You're welcome to extend checkpatch to find these things,
> but there are likely many additional patch types that need
> to be considered.  Remember patches can add, modify and
> delete lines.
>
> cheers, Joe

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30  6:53           ` Bhakti Priya
@ 2016-01-30  7:24             ` Joe Perches
  2016-01-30 12:02             ` Julian Calaby
  1 sibling, 0 replies; 11+ messages in thread
From: Joe Perches @ 2016-01-30  7:24 UTC (permalink / raw)
  To: Bhakti Priya
  Cc: Julian Calaby, Jes Sorensen, Larry Finger, Greg Kroah-Hartman,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

On Sat, 2016-01-30 at 12:23 +0530, Bhakti Priya wrote:
> I will be happy to extend checkpatch.pl. As suggested by you, I am
> trying to detect such blank lines in a line removal patch by checking
> if the line above the deleted line was a blank line and the line
> following the deleted line had a closing brace.
> Can you please guide me and let me know if I am headed in the right
> direction.

You have to track all the + and - lines that precede the
deleted line.

Good luck.

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30  6:53           ` Bhakti Priya
  2016-01-30  7:24             ` Joe Perches
@ 2016-01-30 12:02             ` Julian Calaby
  2016-01-30 12:09               ` Joe Perches
  1 sibling, 1 reply; 11+ messages in thread
From: Julian Calaby @ 2016-01-30 12:02 UTC (permalink / raw)
  To: Bhakti Priya
  Cc: Joe Perches, Jes Sorensen, Larry Finger, Greg Kroah-Hartman,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

Hi Bhakti,

On Sat, Jan 30, 2016 at 5:53 PM, Bhakti Priya <bhaktipriya96@gmail.com> wrote:
> Hi,
>
> Thank you for your reply. I've just sent version 2 of the patch with
> the blank lines removed.
> I will be happy to extend checkpatch.pl. As suggested by you, I am
> trying to detect such blank lines in a line removal patch by checking
> if the line above the deleted line was a blank line and the line
> following the deleted line had a closing brace.
> Can you please guide me and let me know if I am headed in the right direction.

As I understand it, the algorithm needs to work like this:
1. For each patch hunk:
2. Filter out all lines that match /^-/
3. Remove the first character (" " or "+")
4. Normalise EOL characters: s/\r\n?/\n/
5. Over the entire hunk, find any case that matches
/({|\n)\s*\n\s*(\n|})/ where \s matches all space characters except
\n.
6. Report the middle line the preceding regular expression matches to the user.

I'm confident I can write it as a shell script, but I don't know
enough Perl to add that test to checkpatch.pl

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-30 12:02             ` Julian Calaby
@ 2016-01-30 12:09               ` Joe Perches
  0 siblings, 0 replies; 11+ messages in thread
From: Joe Perches @ 2016-01-30 12:09 UTC (permalink / raw)
  To: Julian Calaby, Bhakti Priya, Andy Whitcroft
  Cc: Jes Sorensen, Larry Finger, Greg Kroah-Hartman,
	Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
	linux-wireless, devel, linux-kernel

On Sat, 2016-01-30 at 23:02 +1100, Julian Calaby wrote:
> Hi Bhakti,
> 
> On Sat, Jan 30, 2016 at 5:53 PM, Bhakti Priya  wrote:
> > Hi,
> > 
> > Thank you for your reply. I've just sent version 2 of the patch with
> > the blank lines removed.
> > I will be happy to extend checkpatch.pl. As suggested by you, I am
> > trying to detect such blank lines in a line removal patch by checking
> > if the line above the deleted line was a blank line and the line
> > following the deleted line had a closing brace.
> > Can you please guide me and let me know if I am headed in the right direction.
> 
> As I understand it, the algorithm needs to work like this:
> 1. For each patch hunk:
> 2. Filter out all lines that match /^-/
> 3. Remove the first character (" " or "+")
> 4. Normalise EOL characters: s/\r\n?/\n/
> 5. Over the entire hunk, find any case that matches
> /({|\n)\s*\n\s*(\n|})/ where \s matches all space characters except
> \n.
> 6. Report the middle line the preceding regular expression matches to the user.
> 
> I'm confident I can write it as a shell script, but I don't know
> enough Perl to add that test to checkpatch.pl

That's basically what the $prevline variable in checkpatch does.
Likely it's enough to check that.
Perhaps Andy Whitcroft knows.


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

* Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning
  2016-01-29 23:17   ` Julian Calaby
  2016-01-30  1:28     ` Joe Perches
@ 2016-01-31 14:31     ` Jes Sorensen
  1 sibling, 0 replies; 11+ messages in thread
From: Jes Sorensen @ 2016-01-31 14:31 UTC (permalink / raw)
  To: Julian Calaby
  Cc: Bhaktipriya Shridhar, Larry Finger, Greg Kroah-Hartman,
	Joe Perches, Alexander Kuleshov, Haneen Mohammed,
	Andreas Ruprecht, linux-wireless, devel, linux-kernel

Julian Calaby <julian.calaby@gmail.com> writes:
> Hi Bhaktipriya,
>
> On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
>> Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
>> If you insist on pushing this rather unncessary change, please do it
>> properly, and remove the blank line before the return statement as well.
>
> As Jes said, you need to remove the blank lines before the returns
> too. checkpatch should have picked this up, you did run the patch
> through checkpatch before you sent it, right?
>
> Jes,
>
> I know you have strong feelings on coding style, but there are a lot
> of people out there who see deviations from the standard as bugs to be
> fixed, so stuff like this isn't going to stop until it matches the
> coding style document's spec.

Julian,

rtl8723au is pretty dead development wise, so I don't care too much.
checkpatch is broken and has effectively turned into a policing tool for
a few people who wish to apply their narrow view onto everyone else.
I'll continue top reject broken patches to my code pushed out under
those rules.

Maybe it's time to introduce checkpatchconsideredharmful.com

Jes

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

end of thread, other threads:[~2016-01-31 14:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-29 17:29 [PATCH] staging: rtl8723au: Fixes unnecessary return warning Bhaktipriya Shridhar
2016-01-29 18:00 ` Jes Sorensen
2016-01-29 23:17   ` Julian Calaby
2016-01-30  1:28     ` Joe Perches
2016-01-30  3:09       ` Julian Calaby
2016-01-30  3:18         ` Joe Perches
2016-01-30  6:53           ` Bhakti Priya
2016-01-30  7:24             ` Joe Perches
2016-01-30 12:02             ` Julian Calaby
2016-01-30 12:09               ` Joe Perches
2016-01-31 14:31     ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.