diff options
author | Alex Elder <elder@linaro.org> | 2022-05-12 10:10:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-13 12:01:42 +0100 |
commit | 8d017efb1eaad69f148bb99ee2c7020abdedfad1 (patch) | |
tree | a76cfdeb7411886a56b94a39c7bb36bb504f5e7d /drivers/net/ipa | |
parent | d8290cbe1111105f92f0c8ab455bec8bf98d0630 (diff) | |
download | linux-8d017efb1eaad69f148bb99ee2c7020abdedfad1.tar.bz2 |
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: 530f9216a953 ("soc: qcom: ipa: AP/modem communications")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa')
-rw-r--r-- | drivers/net/ipa/ipa_qmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_qmi.c b/drivers/net/ipa/ipa_qmi.c index 90f3aec55b36..ec010cf2e816 100644 --- a/drivers/net/ipa/ipa_qmi.c +++ b/drivers/net/ipa/ipa_qmi.c @@ -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 */ |