staging/rtl8192e: avoid comparing unsigned type >= 0
authorArnd Bergmann <arnd@arndb.de>
Wed, 20 Jul 2016 15:26:06 +0000 (17:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:21:28 +0000 (18:21 +0200)
commitfd181f7d5a53eb73ba7276d95ecdaff9605d63c2
tree3b563767bb0ff8db119377e7f9e868c62a28830e
parent5d5fd353740ffe30bfb2797bc8534d7f95871c93
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>
drivers/staging/rtl8192e/rtl819x_Qos.h
drivers/staging/rtl8192e/rtl819x_TSProc.c