Skip to content

Commit 6aa8d50

Browse files
committed
drm/i915/pxp: 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 d3110f0 commit 6aa8d50

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ int intel_pxp_gsccs_create_session(struct intel_pxp *pxp,
208208
int arb_session_id)
209209
{
210210
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
211-
struct pxp43_create_arb_in msg_in = {0};
212-
struct pxp43_create_arb_out msg_out = {0};
211+
struct pxp43_create_arb_in msg_in = {};
212+
struct pxp43_create_arb_out msg_out = {};
213213
int ret;
214214

215215
msg_in.header.api_version = PXP_APIVER(4, 3);
@@ -246,8 +246,8 @@ int intel_pxp_gsccs_create_session(struct intel_pxp *pxp,
246246
void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 session_id)
247247
{
248248
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
249-
struct pxp42_inv_stream_key_in msg_in = {0};
250-
struct pxp42_inv_stream_key_out msg_out = {0};
249+
struct pxp42_inv_stream_key_in msg_in = {};
250+
struct pxp42_inv_stream_key_out msg_out = {};
251251
int ret = 0;
252252

253253
/*

drivers/gpu/drm/i915/pxp/intel_pxp_huc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ int intel_pxp_huc_load_and_auth(struct intel_pxp *pxp)
1818
{
1919
struct intel_gt *gt;
2020
struct intel_huc *huc;
21-
struct pxp43_start_huc_auth_in huc_in = {0};
22-
struct pxp43_huc_auth_out huc_out = {0};
21+
struct pxp43_start_huc_auth_in huc_in = {};
22+
struct pxp43_huc_auth_out huc_out = {};
2323
dma_addr_t huc_phys_addr;
2424
u8 client_id = 0;
2525
u8 fence_id = 0;

drivers/gpu/drm/i915/pxp/intel_pxp_tee.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp,
326326
int arb_session_id)
327327
{
328328
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
329-
struct pxp42_create_arb_in msg_in = {0};
330-
struct pxp42_create_arb_out msg_out = {0};
329+
struct pxp42_create_arb_in msg_in = {};
330+
struct pxp42_create_arb_out msg_out = {};
331331
int ret;
332332

333333
msg_in.header.api_version = PXP_APIVER(4, 2);
@@ -364,8 +364,8 @@ int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp,
364364
void intel_pxp_tee_end_arb_fw_session(struct intel_pxp *pxp, u32 session_id)
365365
{
366366
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
367-
struct pxp42_inv_stream_key_in msg_in = {0};
368-
struct pxp42_inv_stream_key_out msg_out = {0};
367+
struct pxp42_inv_stream_key_in msg_in = {};
368+
struct pxp42_inv_stream_key_out msg_out = {};
369369
int ret, trials = 0;
370370

371371
try_again:

0 commit comments

Comments
 (0)