On Wed, Jun 03, 2015 at 08:23:54AM +0000, Mutharaju, Prasanna (P.) wrote: > From: Prasanna Karthik <mkarthi3@xxxxxxxxxxx> > > Fix reported by coccinelle compressing last two lines with single return > call > > Signed-off-by: Prasanna Karthik <mkarthi3@xxxxxxxxxxx> > --- > drivers/staging/rtl8712/rtl871x_sta_mgt.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rtl8712/rtl871x_sta_mgt.c b/drivers/staging/rtl8712/rtl871x_sta_mgt.c > index a9b93d0..f53b36c 100644 > --- a/drivers/staging/rtl8712/rtl871x_sta_mgt.c > +++ b/drivers/staging/rtl8712/rtl871x_sta_mgt.c > @@ -274,8 +274,7 @@ struct sta_info *r8712_get_bcmc_stainfo(struct _adapter *padapter) > 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); now we are having a build warning of unused variable 'psta'. regards sudip _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel