* [PATCH] remove return statement
@ 2017-04-15 5:05 surenderpolsani
2017-04-15 5:17 ` Joe Perches
2017-04-15 6:54 ` kbuild test robot
0 siblings, 2 replies; 3+ messages in thread
From: surenderpolsani @ 2017-04-15 5:05 UTC (permalink / raw)
To: gregkh; +Cc: devel, linux-kernel, surenderpolsani
staging : rtl8188e : remove return in void function
kernel coding style doesn't allow the return statement
in void function.
Signed-off-by: surenderpolsani <surenderpolsani@gmail.com>
---
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
index d04b7fb..6db0e19 100644
--- 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;
}
void rtw_hal_dm_init(struct adapter *Adapter)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] remove return statement
2017-04-15 5:05 [PATCH] remove return statement surenderpolsani
@ 2017-04-15 5:17 ` Joe Perches
2017-04-15 6:54 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2017-04-15 5:17 UTC (permalink / raw)
To: surenderpolsani, gregkh; +Cc: devel, linux-kernel, Larry.Finger
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] remove return statement
2017-04-15 5:05 [PATCH] remove return statement surenderpolsani
2017-04-15 5:17 ` Joe Perches
@ 2017-04-15 6:54 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2017-04-15 6:54 UTC (permalink / raw)
To: surenderpolsani; +Cc: kbuild-all, gregkh, devel, surenderpolsani, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
Hi surenderpolsani,
[auto build test ERROR on v4.9-rc8]
[also build test ERROR on next-20170413]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/surenderpolsani/remove-return-statement/20170415-130917
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c: In function 'rtw_hal_dm_watchdog':
>> drivers/staging/rtl8188eu/hal/rtl8188e_dm.c:165:1: error: label at end of compound statement
skip_dm:
^~~~~~~
vim +165 drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
7ef8ded0 Larry Finger 2013-08-21 159 if (check_fwstate(pmlmepriv, _FW_LINKED))
7ef8ded0 Larry Finger 2013-08-21 160 bLinked = true;
7ef8ded0 Larry Finger 2013-08-21 161 }
7ef8ded0 Larry Finger 2013-08-21 162
177aa53a Ivan Safonov 2016-09-19 163 Adapter->HalData->odmpriv.bLinked = bLinked;
177aa53a Ivan Safonov 2016-09-19 164 ODM_DMWatchdog(&Adapter->HalData->odmpriv);
7ef8ded0 Larry Finger 2013-08-21 @165 skip_dm:
7ef8ded0 Larry Finger 2013-08-21 166 /* Check GPIO to determine current RF on/off and Pbc status. */
7ef8ded0 Larry Finger 2013-08-21 167 /* Check Hardware Radio ON/OFF or not */
7ef8ded0 Larry Finger 2013-08-21 168 }
:::::: The code at line 165 was first introduced by commit
:::::: 7ef8ded0cfdb690e37581af85eea35fa67cdb38d staging: r8188eu: Add files for new driver - part 13
:::::: TO: Larry Finger <Larry.Finger@lwfinger.net>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56930 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-15 6:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15 5:05 [PATCH] remove return statement surenderpolsani
2017-04-15 5:17 ` Joe Perches
2017-04-15 6:54 ` kbuild test robot
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.