Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1054696iob; Fri, 13 May 2022 21:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG+QWILrN/IQWN3//eHGw0FsaJYvE4/HPBFinSgVTI2R8hvsRrglbj9wFZMprW98xrXfuv X-Received: by 2002:adf:f210:0:b0:20c:dd8b:7e8f with SMTP id p16-20020adff210000000b0020cdd8b7e8fmr5981433wro.411.1652501940134; Fri, 13 May 2022 21:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652501940; cv=none; d=google.com; s=arc-20160816; b=Z923FM+/89ZJXRkkbs1JdCKAOtTEwi4hO6Bv0UB19z/zWYHHvgxE8LAt0drJbsdDgR Xkvf30py1d4uQMJXlRybdNyj/3WUZbSv6DqUh9zMKhCw3Bn5AZVBNqdWuAzQ1kcFHLyr XvHgA2eUDd2jmZ/LYLGF/fYTC97/6ZjSAQjeL52lB4qscZ5yWuo1tRzU9sOeuzObWRC7 HVPRozD2svlWKr43QRH95tRBX8zGtlulAxbPr8ABTEYg7OtkwkBWEs+TX6CfhlVpeuvf BVx9ru8zWaiKouOcRQ4VZQ/9HsoCfZr9FQe2ujCVhXFkpHcfBwksBVrdHubP/S9Z6s2P 0Reg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V+ifJblrQS6wsvVLJbCK4vZS+8eWu82qh+mj7lpTlPI=; b=cxeGQZO5fwi0eRJ5kbcGerbYXi1plIcrwgzLizPb7nslcl0G8X/h2yKsVM6GRyaRVJ RfDPs/PEyh+nZnlf4FS20Xsq8zp4sJeACHms94eNcf6dWXT9p96jIokSF1WeGaptV6RT O62r9Jc7qqvVLY4Ny00ntO+9+XIDdM/S6b8TYevfd+A7UV6C/7mdsqkda2XnnOSpA+nD IJFjoALsY6BIoeriFOFUOb9qmfc6fJ4Ct0GTehfaqnEdj0srD6fEhA4Ifdkq7ySD5EJQ bLZn38y+1MXwD59CYvFpvBJZk0JqcRsF225geW3zLnVU8zl/u6Qxba/f5hrLUV0tDQ+V wtJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BlhKvvEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z18-20020adfe552000000b0020c71000147si3368335wrm.284.2022.05.13.21.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BlhKvvEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3B36335E8C; Fri, 13 May 2022 17:49:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355784AbiELPLW (ORCPT + 99 others); Thu, 12 May 2022 11:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355735AbiELPKu (ORCPT ); Thu, 12 May 2022 11:10:50 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48538B15 for ; Thu, 12 May 2022 08:10:41 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id z18so5653617iob.5 for ; Thu, 12 May 2022 08:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V+ifJblrQS6wsvVLJbCK4vZS+8eWu82qh+mj7lpTlPI=; b=BlhKvvEpQGUSQwb9tVfoCMFR+KbiPKGe70gOBDgljTA5DQUqQ9ZtT0kR7HeX0WWSOy SAXnIDDky6RlT0fx4cOJkqAVuo6GGxtjfFg2Y1o63whslEzsP1X7zkyvQ//Wj99oxnVE q/nSbzbflXX3HOTfe0stKMdncBYqvdAOkIsHHN0ezP/vZLF59z0/O0aadl383jhInwDM w/idkEqDx7g1z3yyLvsGLYppYWYJtcqcsLkqyw6hGmRVVGgcIiqWdnYgvvNvfvfpbChQ mzwQ9U03GQ3QsIV/wOTEeGf3wLy16CmUAJ52ENMM5yvGoY+TzZKlcMZZ5EDrAjkGBvyr LI4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V+ifJblrQS6wsvVLJbCK4vZS+8eWu82qh+mj7lpTlPI=; b=x5zqisflrfEp3Zsexy0gdSqGlyn9Y2fkmINP0piWaT7RzWgm47qs1gsWsYf2lVmH6t NHfX2z98AIaFMKtFISgCjxKUD+c1xAU2kNCpQdoOaZQXJ2egdF95GSH52Mblformuicm 5KOe7OsiHFRpwlA2ytyfbCpPeAlV7QpnFCa+R8hoGOPUKNDYZcCh9WU4emcQytkwTgqS Emxw0gnAnNAsQ21FnCR0KDN+Q5Sa9bmHBZyFa4dIF6KhfPOaaWa5e3gzaGW01Mybywr1 IXAYH3PL/87+cOTvjF0Bc1MvEUVlHZlgzLnXGgJP31MI5qVEyP0obww6EvEWGGgLM/pC srqw== X-Gm-Message-State: AOAM530Co3hDz4rd4q+Ipf+H5pY+xBwmskL8WxxuepzEzowRNm1hL/B3 rL1ku6vY9PLusjYo6XesyIIngdzbXm9hmQ== X-Received: by 2002:a05:6638:12d3:b0:32b:7235:6a08 with SMTP id v19-20020a05663812d300b0032b72356a08mr215122jas.27.1652368240573; Thu, 12 May 2022 08:10:40 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id p15-20020a6b8d0f000000b0065a47e16f3fsm18217iod.17.2022.05.12.08.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 08:10:40 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com Cc: lkp@intel.com, mka@chromium.org, evgreen@chromium.org, bjorn.andersson@linaro.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 3/3] net: ipa: get rid of a duplicate initialization Date: Thu, 12 May 2022 10:10:33 -0500 Message-Id: <20220512151033.211592-4-elder@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220512151033.211592-1-elder@linaro.org> References: <20220512151033.211592-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Fixes: 530f9216a953 ("soc: qcom: ipa: AP/modem communications") Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipa/ipa_qmi.c b/drivers/net/ipa/ipa_qmi.c index 90f3aec55b365..ec010cf2e816a 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 */ -- 2.32.0