Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: r8712_free_drv_sw(): Change return type

Change return type of r8712_free_drv_sw from u8 to void and remove its
return statement as it always returns the same value (_SUCCESS) and even
this value is never stored, checked or otherwise used.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190808064012.12661-8-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
02433a24 690407fd

+2 -3
+1 -2
drivers/staging/rtl8712/os_intfs.c
··· 326 326 return ret; 327 327 } 328 328 329 - u8 r8712_free_drv_sw(struct _adapter *padapter) 329 + void r8712_free_drv_sw(struct _adapter *padapter) 330 330 { 331 331 struct net_device *pnetdev = padapter->pnetdev; 332 332 ··· 341 341 mp871xdeinit(padapter); 342 342 if (pnetdev) 343 343 free_netdev(pnetdev); 344 - return _SUCCESS; 345 344 } 346 345 347 346 static void enable_video_mode(struct _adapter *padapter, int cbw40_value)
+1 -1
drivers/staging/rtl8712/usb_osintf.h
··· 29 29 void r8712_stop_drv_threads(struct _adapter *padapter); 30 30 void r8712_stop_drv_timers(struct _adapter *padapter); 31 31 int r8712_init_drv_sw(struct _adapter *padapter); 32 - u8 r8712_free_drv_sw(struct _adapter *padapter); 32 + void r8712_free_drv_sw(struct _adapter *padapter); 33 33 struct net_device *r8712_init_netdev(void); 34 34 35 35 #endif