drm/xe: remove header variable from parse_g2h_msg
authorMatthew Brost <matthew.brost@intel.com>
Sat, 29 Jul 2023 03:53:41 +0000 (20:53 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:39:17 +0000 (11:39 -0500)
The header variable is unused, remove it.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Suggested-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c

index 7fb2690..fb1d63f 100644 (file)
@@ -829,12 +829,11 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)
 static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
 {
        struct xe_device *xe = ct_to_xe(ct);
-       u32 header, hxg, origin, type;
+       u32 hxg, origin, type;
        int ret;
 
        lockdep_assert_held(&ct->lock);
 
-       header = msg[0];
        hxg = msg[1];
 
        origin = FIELD_GET(GUC_HXG_MSG_0_ORIGIN, hxg);