aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/gvt/cmd_parser.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index 94f2e701e4d4..1abd153bec28 100644
--- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -616,9 +616,6 @@ static inline u32 get_opcode(u32 cmd, int ring_id)
616{ 616{
617 struct decode_info *d_info; 617 struct decode_info *d_info;
618 618
619 if (ring_id >= I915_NUM_ENGINES)
620 return INVALID_OP;
621
622 d_info = ring_decode_info[ring_id][CMD_TYPE(cmd)]; 619 d_info = ring_decode_info[ring_id][CMD_TYPE(cmd)];
623 if (d_info == NULL) 620 if (d_info == NULL)
624 return INVALID_OP; 621 return INVALID_OP;
@@ -661,9 +658,6 @@ static inline void print_opcode(u32 cmd, int ring_id)
661 struct decode_info *d_info; 658 struct decode_info *d_info;
662 int i; 659 int i;
663 660
664 if (ring_id >= I915_NUM_ENGINES)
665 return;
666
667 d_info = ring_decode_info[ring_id][CMD_TYPE(cmd)]; 661 d_info = ring_decode_info[ring_id][CMD_TYPE(cmd)];
668 if (d_info == NULL) 662 if (d_info == NULL)
669 return; 663 return;