staging: rtl8723bs: make 'myid' function to follow kernel coding rules
authorMaciek Fijalkowski <macfij7@wp.pl>
Tue, 13 Feb 2018 00:03:14 +0000 (01:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:41:27 +0000 (15:41 +0100)
Checkpatch.pl produced errors regarding inline keyword placement and
parenthesis around returned value in 'myid'.
Place inline after static keyword and remove mentioned parenthesis.

Signed-off-by: Maciek Fijalkowski <macfij7@wp.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/drv_types.h

index 32129ac..16b81b1 100644 (file)
@@ -692,9 +692,9 @@ int rtw_suspend_wow(struct adapter *padapter);
 int rtw_resume_process_wow(struct adapter *padapter);
 #endif
 
-__inline static u8 *myid(struct eeprom_priv *peepriv)
+static inline u8 *myid(struct eeprom_priv *peepriv)
 {
-       return (peepriv->mac_addr);
+       return peepriv->mac_addr;
 }
 
 /*  HCI Related header file */