* [PATCH v4] staging: rtl8723bs: remove unnecessary parentheses from return
@ 2026-08-04 11:14 Ashmit Kumar
2026-08-04 12:09 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Ashmit Kumar @ 2026-08-04 11:14 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Ashmit Kumar
The Linux kernel coding style specifies that return is not a function
and therefore parentheses are not required.
Signed-off-by: Ashmit Kumar <work.ashmitkumar@gmail.com>
---
Changes in v4:
- Removed accidental modification of axis-fifo.c which was incorrectly bundled in v2.
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index f31196f54b3..40793aa58d6 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -843,7 +843,7 @@ static int _netdev_open(struct net_device *pnetdev)
netif_carrier_off(pnetdev);
rtw_netif_stop_queue(pnetdev);
- return (-1);
+ return -1;
}
int netdev_open(struct net_device *pnetdev)
--
2.51.0.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v4] staging: rtl8723bs: remove unnecessary parentheses from return
2026-08-04 11:14 [PATCH v4] staging: rtl8723bs: remove unnecessary parentheses from return Ashmit Kumar
@ 2026-08-04 12:09 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-08-04 12:09 UTC (permalink / raw)
To: Ashmit Kumar; +Cc: linux-staging, linux-kernel
On Tue, Aug 04, 2026 at 11:14:17AM +0000, Ashmit Kumar wrote:
> The Linux kernel coding style specifies that return is not a function
> and therefore parentheses are not required.
>
> Signed-off-by: Ashmit Kumar <work.ashmitkumar@gmail.com>
> ---
> Changes in v4:
> - Removed accidental modification of axis-fifo.c which was incorrectly bundled in v2.
Again, slow down, and you forgot the version info for the older
submissions.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-04 12:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 11:14 [PATCH v4] staging: rtl8723bs: remove unnecessary parentheses from return Ashmit Kumar
2026-08-04 12:09 ` Greg KH
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).