diff options
| author | Ville Syrjälä <[email protected]> | 2023-10-12 12:24:42 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2023-11-08 17:51:42 +0000 |
| commit | 65c02404380fb328e4d1fe40318ac6de0e63327a (patch) | |
| tree | f03cac8c08460b4e2636aa4f7616b0dca84ff643 /drivers/gpu/drm/i915/gvt/cmd_parser.c | |
| parent | drm/i915: Do plane/etc. updates more atomically across pipes (diff) | |
| download | kernel-65c02404380fb328e4d1fe40318ac6de0e63327a.tar.gz kernel-65c02404380fb328e4d1fe40318ac6de0e63327a.zip | |
drm/i915/gvt: Clean up zero initializers
Just use a simple {} to zero initialize arrays/structs instead
of the hodgepodge of stuff we are using currently.
Cc: Zhenyu Wang <[email protected]>
Cc: Zhi Wang <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
| -rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c index 05f9348b7a9d..d4a3f3e093b0 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c @@ -3047,7 +3047,7 @@ put_obj: static int combine_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx) { - u32 per_ctx_start[CACHELINE_DWORDS] = {0}; + u32 per_ctx_start[CACHELINE_DWORDS] = {}; unsigned char *bb_start_sva; if (!wa_ctx->per_ctx.valid) |
