Re: [PATCH] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-25 Thread Nathan Chancellor
On Tue, Sep 25, 2018 at 09:07:11PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 20, 2018 at 05:22:21PM -0700, Nathan Chancellor wrote: > > Clang generates a warning when it sees a logical not followed by a > > conditional operator like ==, >, or < because it thinks that the logical > > not should

Re: [PATCH] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-25 Thread Greg Kroah-Hartman
On Thu, Sep 20, 2018 at 05:22:21PM -0700, Nathan Chancellor wrote: > Clang generates a warning when it sees a logical not followed by a > conditional operator like ==, >, or < because it thinks that the logical > not should be applied to the whole statement: > > drivers/staging/rtl8188eu/core/rtw_

[PATCH] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-20 Thread Nathan Chancellor
Clang generates a warning when it sees a logical not followed by a conditional operator like ==, >, or < because it thinks that the logical not should be applied to the whole statement: drivers/staging/rtl8188eu/core/rtw_ieee80211.c:293:8: warning: logical not is only applied to the left hand side