lkml.org 
[lkml]   [2022]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] staging: r8188eu: remove unneeded ret variables
Date
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

\
 
 \ /
  Last update: 2022-01-07 11:38    [W:0.170 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site