summaryrefslogtreecommitdiff
path: root/drivers/video/video-uclass.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-04-22 16:47:48 +0300
committerAnatolij Gustschin <agust@denx.de>2018-04-24 21:57:14 +0300
commit751641814c1db245695dd8f40e9c811320e69f79 (patch)
treeabdb958b3a0dbce51c1f6ef67a4bc88df2a3da8f /drivers/video/video-uclass.c
parent02325c7bfd7ccafae600774273f1b8ac11e90c08 (diff)
downloadu-boot-751641814c1db245695dd8f40e9c811320e69f79.tar.xz
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>
Diffstat (limited to 'drivers/video/video-uclass.c')
-rw-r--r--drivers/video/video-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index b5bb8e0efd..93fdc6828b 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -272,7 +272,7 @@ static int video_post_bind(struct udevice *dev)
ulong size;
/* Before relocation there is nothing to do here */
- if ((!gd->flags & GD_FLG_RELOC))
+ if (!(gd->flags & GD_FLG_RELOC))
return 0;
size = alloc_fb(dev, &addr);
if (addr < gd->video_bottom) {