summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtl819x_TSProc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-07-20 17:26:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-21 18:21:28 +0200
commitfd181f7d5a53eb73ba7276d95ecdaff9605d63c2 (patch)
tree3b563767bb0ff8db119377e7f9e868c62a28830e /drivers/staging/rtl8192e/rtl819x_TSProc.c
parent5d5fd353740ffe30bfb2797bc8534d7f95871c93 (diff)
downloadop-kernel-dev-fd181f7d5a53eb73ba7276d95ecdaff9605d63c2.zip
op-kernel-dev-fd181f7d5a53eb73ba7276d95ecdaff9605d63c2.tar.gz
staging/rtl8192e: avoid comparing unsigned type >= 0
There is one remaining warning about a type limit check in rtl8192e: staging/rtl8192e/rtl819x_TSProc.c:326:14: error: comparison is always true due to limited range of data type [-Werror=type-limits] This changes a macro into a local function to clarify the types and simplify the check while removing the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl819x_TSProc.c')
-rw-r--r--drivers/staging/rtl8192e/rtl819x_TSProc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c
index 2c8a526..a966a8e 100644
--- a/drivers/staging/rtl8192e/rtl819x_TSProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c
@@ -306,6 +306,11 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr,
pTsCommonInfo->TClasNum = TCLAS_Num;
}
+static bool IsACValid(unsigned int tid)
+{
+ return tid < 7;
+}
+
bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS,
u8 *Addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs)
{
OpenPOWER on IntegriCloud