video-uclass: Fix logical-not-parentheses warning
authorTom Rini <trini@konsulko.com>
Sun, 22 Apr 2018 13:47:48 +0000 (09:47 -0400)
committerAnatolij Gustschin <agust@denx.de>
Tue, 24 Apr 2018 18:57:14 +0000 (20:57 +0200)
commit751641814c1db245695dd8f40e9c811320e69f79
treeabdb958b3a0dbce51c1f6ef67a4bc88df2a3da8f
parent02325c7bfd7ccafae600774273f1b8ac11e90c08
video-uclass: Fix logical-not-parentheses warning

With clang-4.0 and later we see:
warning: logical not is only applied to the left hand side of this bitwise
operator [-Wlogical-not-parentheses]
        if ((!gd->flags & GD_FLG_RELOC))
             ^          ~

And while the compiler suggests adding parenthesis around gd->flags, a
reading of the code says that we want to know when GD_FLG_RELOC is not
set and then return.

Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/video/video-uclass.c