linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] staging: r8188eu: remove unneeded ret variables
@ 2022-01-07 10:35 Abdun Nihaal
  2022-01-07 10:35 ` [PATCH v3 1/2] " Abdun Nihaal
  2022-01-07 10:35 ` [PATCH v3 2/2] staging: r8188eu: change functions to return void Abdun Nihaal
  0 siblings, 2 replies; 7+ messages in thread
From: Abdun Nihaal @ 2022-01-07 10:35 UTC (permalink / raw)
  To: gregkh
  Cc: Abdun Nihaal, Larry.Finger, phil, straube.linux, martin,
	linux-staging, linux-kernel

This patchset removes unneeded return variables in ioctl_linux.c,
and also converts functions that always return 0 to return void.

v2 -> v3:
- Remove returns at the end of void functions to conform to coding style

v1 -> v2:
- As suggested by Greg, change functions that always return 0
  and whose return value is not used, to return void instead.
- Not removing return variables in rtw_p2p_get2 and rtw_p2p_set
  as they may need to be used.
  These functions call other functions that do return error codes
  (mostly -EFAULT) but are not propagated back.
  I'll send a different patch to fix this.

Abdun Nihaal (2):
  staging: r8188eu: remove unneeded ret variables
  staging: r8188eu: change functions to return void

 drivers/staging/r8188eu/os_dep/ioctl_linux.c | 145 +++++++------------
 1 file changed, 54 insertions(+), 91 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-01-29 10:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 10:35 [PATCH v3 0/2] staging: r8188eu: remove unneeded ret variables Abdun Nihaal
2022-01-07 10:35 ` [PATCH v3 1/2] " Abdun Nihaal
2022-01-25 15:10   ` Greg KH
2022-01-27 15:25     ` Abdun Nihaal
2022-01-27 15:51       ` Greg KH
2022-01-29 10:20         ` Abdun Nihaal
2022-01-07 10:35 ` [PATCH v3 2/2] staging: r8188eu: change functions to return void Abdun Nihaal

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).