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


Groups > linux.kernel > #1624025

Re: [PATCH] remove return statement

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] remove return statement
Date 2017-04-15 07:20 +0200
Message-ID <twohP-2A4-1@gated-at.bofh.it> (permalink)
References <two89-2wQ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, 2017-04-15 at 10:35 +0530, surenderpolsani wrote:
> staging : rtl8188e : remove return in void function

Your patch subject isn't correct.

It should be something like:

Subject: [PATCH] staging: rtl8188e: Remove void function return

> kernel coding style doesn't allow the return statement
> in void function.
[]
> diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
[]
> @@ -165,7 +165,6 @@ void rtw_hal_dm_watchdog(struct adapter *Adapter)
>  skip_dm:
>  	/*  Check GPIO to determine current RF on/off and Pbc status. */
>  	/*  Check Hardware Radio ON/OFF or not */
> -	return;

And the comments?
Are those supposed to be reminders of code to write?

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


Thread

[PATCH] remove return statement surenderpolsani <surenderpolsani@gmail.com> - 2017-04-15 07:10 +0200
  Re: [PATCH] remove return statement Joe Perches <joe@perches.com> - 2017-04-15 07:20 +0200

csiph-web