mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
net: ipa: get rid of a duplicate initialization
In ipa_qmi_ready(), the "ipa" local variable is set when
initialized, but then set again just before it's first used.
One or the other is enough, so get rid of the first one.
References: https://lore.kernel.org/lkml/200de1bd-0f01-c334-ca18-43eed783dfac@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 530f9216a9
("soc: qcom: ipa: AP/modem communications")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d8290cbe11
commit
8d017efb1e
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ static void ipa_qmi_indication(struct ipa_qmi *ipa_qmi)
|
|||
*/
|
||||
static void ipa_qmi_ready(struct ipa_qmi *ipa_qmi)
|
||||
{
|
||||
struct ipa *ipa = container_of(ipa_qmi, struct ipa, qmi);
|
||||
struct ipa *ipa;
|
||||
int ret;
|
||||
|
||||
/* We aren't ready until the modem and microcontroller are */
|
||||
|
|
Loading…
Reference in a new issue