From 05871f994e326fb3d95b34575b311c832ba4ccea Mon Sep 17 00:00:00 2001 From: Prasanna Karthik Date: Thu, 4 Jun 2015 04:48:51 +0000 Subject: [PATCH] staging:rtl8712:Fix compressed return statement Fix reported by coccinelle compressing last two lines with single return call Signed-off-by: Prasanna Karthik Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8712/rtl871x_sta_mgt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_sta_mgt.c b/drivers/staging/rtl8712/rtl871x_sta_mgt.c index a9b93d0f6f56..6ae8cdc1bfd1 100644 --- a/drivers/staging/rtl8712/rtl871x_sta_mgt.c +++ b/drivers/staging/rtl8712/rtl871x_sta_mgt.c @@ -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); } -- 2.39.5