diff options
| author | Andy Shevchenko <[email protected]> | 2019-10-17 11:49:12 +0000 |
|---|---|---|
| committer | Noralf Trønnes <[email protected]> | 2019-10-22 13:09:15 +0000 |
| commit | dc6015cb1c834ce39c0d3ff09b3f1818b70ba9ad (patch) | |
| tree | e57ab5eb80e1a811a6f907e13ab917103ae70dbf /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | drm/virtio: move byteorder handling into virtio_gpu_cmd_transfer_to_host_2d f... (diff) | |
| download | kernel-dc6015cb1c834ce39c0d3ff09b3f1818b70ba9ad.tar.gz kernel-dc6015cb1c834ce39c0d3ff09b3f1818b70ba9ad.zip | |
drm/mipi_dbi: Use simple right shift instead of double negation
GCC complains about dubious bitwise OR operand:
drivers/gpu/drm/drm_mipi_dbi.c:1024:49: warning: dubious: x | !y
CC [M] drivers/gpu/drm/drm_mipi_dbi.o
As long as buffer is consist of byte (u8) values, we may use
simple right shift and satisfy compiler. It also reduces amount of
operations needed.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Noralf Trønnes <[email protected]>
Tested-by: Noralf Trønnes <[email protected]>
Signed-off-by: Noralf Trønnes <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
