Skip to content

Commit d3110f0

Browse files
committed
drm/i915/guc: Clean up zero initializers
Just use a simple {} to zero initialize arrays/structs instead of the hodgepodge of stuff we are using currently. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jani Nikula <[email protected]>
1 parent 7f403ca commit d3110f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ guc_capture_create_prealloc_nodes(struct intel_guc *guc)
11011101
static int
11021102
guc_capture_extract_reglists(struct intel_guc *guc, struct __guc_capture_bufstate *buf)
11031103
{
1104-
struct guc_state_capture_group_header_t ghdr = {0};
1105-
struct guc_state_capture_header_t hdr = {0};
1104+
struct guc_state_capture_group_header_t ghdr = {};
1105+
struct guc_state_capture_header_t hdr = {};
11061106
struct __guc_capture_parsed_output *node = NULL;
11071107
struct guc_mmio_reg *regs = NULL;
11081108
int i, numlists, numregs, ret = 0;

0 commit comments

Comments
 (0)