]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gvt: Fix static checker warning on intel_gvt_i2c_handle_aux_ch_write()
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Nov 2016 02:32:58 +0000 (10:32 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Nov 2016 10:06:44 +0000 (18:06 +0800)
commitee145f66e77ac89cc8d98550a14b9972daf22925
tree1b970773e0f8c068484ae6a9aae340099e447d93
parentf4b0c2860b530e06ddaa5b5df31ab4171ac6e9eb
drm/i915/gvt: Fix static checker warning on intel_gvt_i2c_handle_aux_ch_write()

Static checker gave warning on:

drivers/gpu/drm/i915/gvt/edid.c:506 intel_gvt_i2c_handle_aux_ch_write()
warn: odd binop '0x0 & 0xff'

We try to return ACK for I2C reply which is defined with 0. Remove
bit shift which caused misleading bit op.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/edid.c
drivers/gpu/drm/i915/gvt/edid.h