Commit d3110f07 authored by Ville Syrjälä's avatar Ville Syrjälä

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231012122442.15718-4-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 7f403caa
...@@ -1101,8 +1101,8 @@ guc_capture_create_prealloc_nodes(struct intel_guc *guc) ...@@ -1101,8 +1101,8 @@ guc_capture_create_prealloc_nodes(struct intel_guc *guc)
static int static int
guc_capture_extract_reglists(struct intel_guc *guc, struct __guc_capture_bufstate *buf) guc_capture_extract_reglists(struct intel_guc *guc, struct __guc_capture_bufstate *buf)
{ {
struct guc_state_capture_group_header_t ghdr = {0}; struct guc_state_capture_group_header_t ghdr = {};
struct guc_state_capture_header_t hdr = {0}; struct guc_state_capture_header_t hdr = {};
struct __guc_capture_parsed_output *node = NULL; struct __guc_capture_parsed_output *node = NULL;
struct guc_mmio_reg *regs = NULL; struct guc_mmio_reg *regs = NULL;
int i, numlists, numregs, ret = 0; int i, numlists, numregs, ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment