]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: rtl8192e: Fix else is not useful warning
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Fri, 19 Sep 2014 21:06:31 +0000 (02:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:14:30 +0000 (17:14 -0700)
This fixes the following checkpatch.pl warning:
WARNING: else is not generally useful after a break or return

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_TSProc.c

index 6c0158e8e8c361501f807ede138695414f32fc44..53fe27f9d42dca81680ab77fdfc483ff7f5cc4d9 100644 (file)
@@ -281,8 +281,7 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,
 
        if (pRet && &pRet->List  != psearch_list)
                return pRet ;
-       else
-               return NULL;
+       return NULL;
 }
 
 static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr,