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ä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231012122442.15718-6-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
d3110f0758
commit
6aa8d50a98
@ -208,8 +208,8 @@ int intel_pxp_gsccs_create_session(struct intel_pxp *pxp,
|
||||
int arb_session_id)
|
||||
{
|
||||
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
|
||||
struct pxp43_create_arb_in msg_in = {0};
|
||||
struct pxp43_create_arb_out msg_out = {0};
|
||||
struct pxp43_create_arb_in msg_in = {};
|
||||
struct pxp43_create_arb_out msg_out = {};
|
||||
int ret;
|
||||
|
||||
msg_in.header.api_version = PXP_APIVER(4, 3);
|
||||
@ -246,8 +246,8 @@ int intel_pxp_gsccs_create_session(struct intel_pxp *pxp,
|
||||
void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 session_id)
|
||||
{
|
||||
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
|
||||
struct pxp42_inv_stream_key_in msg_in = {0};
|
||||
struct pxp42_inv_stream_key_out msg_out = {0};
|
||||
struct pxp42_inv_stream_key_in msg_in = {};
|
||||
struct pxp42_inv_stream_key_out msg_out = {};
|
||||
int ret = 0;
|
||||
|
||||
/*
|
||||
|
@ -18,8 +18,8 @@ int intel_pxp_huc_load_and_auth(struct intel_pxp *pxp)
|
||||
{
|
||||
struct intel_gt *gt;
|
||||
struct intel_huc *huc;
|
||||
struct pxp43_start_huc_auth_in huc_in = {0};
|
||||
struct pxp43_huc_auth_out huc_out = {0};
|
||||
struct pxp43_start_huc_auth_in huc_in = {};
|
||||
struct pxp43_huc_auth_out huc_out = {};
|
||||
dma_addr_t huc_phys_addr;
|
||||
u8 client_id = 0;
|
||||
u8 fence_id = 0;
|
||||
|
@ -326,8 +326,8 @@ int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp,
|
||||
int arb_session_id)
|
||||
{
|
||||
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
|
||||
struct pxp42_create_arb_in msg_in = {0};
|
||||
struct pxp42_create_arb_out msg_out = {0};
|
||||
struct pxp42_create_arb_in msg_in = {};
|
||||
struct pxp42_create_arb_out msg_out = {};
|
||||
int ret;
|
||||
|
||||
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,
|
||||
void intel_pxp_tee_end_arb_fw_session(struct intel_pxp *pxp, u32 session_id)
|
||||
{
|
||||
struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
|
||||
struct pxp42_inv_stream_key_in msg_in = {0};
|
||||
struct pxp42_inv_stream_key_out msg_out = {0};
|
||||
struct pxp42_inv_stream_key_in msg_in = {};
|
||||
struct pxp42_inv_stream_key_out msg_out = {};
|
||||
int ret, trials = 0;
|
||||
|
||||
try_again:
|
||||
|
Loading…
x
Reference in New Issue
Block a user