Преглед изворни кода

IPA: ipa3_tx_dp remove redundant variable

Removing a variable which was only set to NULL and later "freed".

Change-Id: I4973f8f2850669b9092eddee6d4179ab2089f227
Acked-by: Eliad Ben Yishay <[email protected]>
Signed-off-by: Amir Levy <[email protected]>
Amir Levy пре 3 година
родитељ
комит
8f6db82c32
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 0 - 2
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -1867,7 +1867,6 @@ int ipa3_tx_dp(enum ipa_client_type dst, struct sk_buff *skb,
 	struct ipa3_desc *desc;
 	struct ipa3_desc _desc[3];
 	int dst_ep_idx;
-	struct ipahal_imm_cmd_pyld *cmd_pyld = NULL;
 	struct ipa3_sys_context *sys;
 	int src_ep_idx;
 	int num_frags, f;
@@ -2105,7 +2104,6 @@ int ipa3_tx_dp(enum ipa_client_type dst, struct sk_buff *skb,
 	return 0;
 
 fail_send:
-	ipahal_destroy_imm_cmd(cmd_pyld);
 fail_mem:
 	if (num_frags)
 		kfree(desc);