mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
staging:rtl8712:Fix compressed return statement
Fix reported by coccinelle compressing last two lines with single return call Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4abce83dca
commit
05871f994e
@ -270,12 +270,10 @@ void r8712_init_bcmc_stainfo(struct _adapter *padapter)
|
||||
|
||||
struct sta_info *r8712_get_bcmc_stainfo(struct _adapter *padapter)
|
||||
{
|
||||
struct sta_info *psta;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
|
||||
psta = r8712_get_stainfo(pstapriv, bc_addr);
|
||||
return psta;
|
||||
return r8712_get_stainfo(pstapriv, bc_addr);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user