Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6872754ybn; Mon, 30 Sep 2019 05:16:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP0hGO7N7wF/+wYFvPxkXYeQxz4FhT1xL0QKrUEA0EcZzXSiuqxCEIvk37lJTlStYeJZU9 X-Received: by 2002:a17:906:d154:: with SMTP id br20mr19435096ejb.79.1569845782850; Mon, 30 Sep 2019 05:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569845782; cv=none; d=google.com; s=arc-20160816; b=xlnXDUX2hGUcQSgS6+dd97sy3f9lX3Z6HW3LeHyscq6/yN42qMUETsQ3+CyM6INc11 PDqNi0mIaSBiXGQVuvnUnLIVGQcmF/yE/BgNHJiDbPTfbxDq3gexUFV7A1QAolhQpcXZ /FUYt4M3WEO2XmcfKkvKR0QjBUpwrwAi8lm4xBqL6+N7c/R1Fj5wI4S5hUNXxFjjTC98 l4pTnu4eGSCBbN6BbhTf4XIfzbo+psgsFDTU8v8A17TYlmSjLn0DKdYXxFEVoVkajqzn +4epRAFr7IstasyQ6p+jHVAJLGF+0xsiw2UisxcRISky9ZTfBa+3soDCT2v6sznn6IF9 fKTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ml/CTnqhVW2qBPPanZ0BKImXsly7132M8cavQjsI7e0=; b=QTC1FOUHQndFhGSqoVIHwQa/1sdA5FWObB4h4zrPZGnX/6GWvI/vMyUu6ck2mlLBrY QT8E7wldV8pU5PGgAkq7MoV0k+k+4Vv4tYRv+3dD0zmXmtXQ+q+S6A08p7nt7cUEk8W6 0gg4Nd8D3RdtC8FuOLneaxP7pv3hs/u7wInIjROfkhLqFYhuUJcg20rm8OvLCUwmhFkz 8fvren/Dcez9iRtA9e+Udb3gT14pKxuCO55c2FEi15aitx4Uq1NBRc3JGTJdrGSmYqO/ LrFU5sqVpSuz343pNhjOAhN49pqJpbJOqulenngXAbww40NpIThR628VkAjGKzZZNwNx nG3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si7054675edb.204.2019.09.30.05.15.58; Mon, 30 Sep 2019 05:16:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730459AbfI3MPs (ORCPT + 99 others); Mon, 30 Sep 2019 08:15:48 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:52461 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfI3MPr (ORCPT ); Mon, 30 Sep 2019 08:15:47 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MqapC-1hjvMD2Xwm-00meW0; Mon, 30 Sep 2019 14:15:25 +0200 From: Arnd Bergmann To: Antoine Tenart , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Pascal van Leeuwen , Pascal van Leeuwen , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] crypto: inside-secure - Fix a maybe-uninitialized warning Date: Mon, 30 Sep 2019 14:14:33 +0200 Message-Id: <20190930121520.1388317-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:LInyj3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RtWKH1Qf0e tMk1goSf9Lb6jP/p+i6aXWyDLSf2kN5TD0VGDF8yUnptoPoMyijB7YRj2d+1zBN67mm10fYhJ EQZdIIA3eBVUy4Js3uXQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A previous fixup avoided an unused variable warning but replaced it with a slightly scarier warning: drivers/crypto/inside-secure/safexcel.c:1100:6: error: variable 'irq' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] This is harmless as it is impossible to get into this case, but the compiler has no way of knowing that. Add an explicit error handling case to make it obvious to both compilers and humans reading the source. Fixes: 212ef6f29e5b ("crypto: inside-secure - Fix unused variable warning when CONFIG_PCI=n") Signed-off-by: Arnd Bergmann --- drivers/crypto/inside-secure/safexcel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c index 4ab1bde8dd9b..311bf60df39f 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1120,6 +1120,8 @@ static int safexcel_request_ring_irq(void *pdev, int irqid, irq_name, irq); return irq; } + } else { + return -ENXIO; } ret = devm_request_threaded_irq(dev, irq, handler, -- 2.20.0