drm/i915/gvt: Fix shift for cmd data size
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 27 Oct 2016 09:30:13 +0000 (17:30 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 7 Nov 2016 06:16:56 +0000 (14:16 +0800)
commit173bcc6018a79114afba3cab2fec55c984657b84
tree3a3133526a14a448223086542303a70dc7f05192
parente95433c73a11759203af1cae5958f998c9673370
drm/i915/gvt: Fix shift for cmd data size

This is to fix smatch warning on

     drivers/gpu/drm/i915/gvt/cmd_parser.c:1421 cmd_handler_mi_op_2f()
     warn: shift has higher precedence than mask

We need bits 20-19 mask for data size.

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