]> Git Repo - J-u-boot.git/commit
video: Add parentheses around VNBYTES() macro
authorDan Carpenter <[email protected]>
Wed, 26 Jul 2023 06:54:08 +0000 (09:54 +0300)
committerTom Rini <[email protected]>
Tue, 8 Aug 2023 21:05:43 +0000 (17:05 -0400)
commitcc05d352fbc2b5df7f3aa4bd8a0711df5a1efa68
tree12b36eac0b631c7aa488c4ea4def8d996da9671b
parent57175285774751ca751d3d5e9f045d6af95ea43b
video: Add parentheses around VNBYTES() macro

The VNBYTES() macro needs to have parentheses to prevent some (harmless)
macro expansion bugs.  The VNBYTES() macro is used like this:

VID_TO_PIXEL(x) * VNBYTES(vid_priv->bpix)

The * operation is done before the / operation.  It still ends up with
the same results, but it's not ideal.

Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
include/video.h
This page took 0.033664 seconds and 4 git commands to generate.