From patchwork Thu Apr 8 20:16:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12192423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D27EDC433B4 for ; Thu, 8 Apr 2021 20:18:32 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7970C610CF for ; Thu, 8 Apr 2021 20:18:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7970C610CF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kV7UlwQKPfKm+Ar3TYynUzTVFhu5PBHzTtk78cCQ5vw=; b=DUGVOFcs8m/ImX mkhVMXUueVoiflNsdla3ABh9msjel6tM9v0ajC+eig9EfprMGlYCysIiLf2UU8jVN9+Y4wL0Sbq9k lum3G5aRYSz+JcDZQfiubtnvEMISlzNtyELTU8TLLtjYAJ0tU8hMptlHKw5KgbpkruCBOE6G2jfqN RxT5ulnXAmBfFVw6/hIcNXtGAyS1esHYxMA0q9TC2R0f5XOstCQ9fvSQcSi2J3hKvIQC+CyJl97KA X2yHWcC0wdUtZ2gT7XfsrQcVikyinsxqgvU+a3yn7sCOTgzQBLlHIJPpDVL/frkTqO9BK0AuW8Ztk TkmgQ521E8z50tCA+Fkw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUb4o-009BKP-Og; Thu, 08 Apr 2021 20:16:30 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUb4k-009BJE-AH for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 20:16:28 +0000 Received: from mail-wm1-f71.google.com ([209.85.128.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lUb4j-0005dd-R2 for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 20:16:25 +0000 Received: by mail-wm1-f71.google.com with SMTP id f15-20020a7bc8cf0000b029010bb9489e25so52506wml.0 for ; Thu, 08 Apr 2021 13:16:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jMABrCg2yQSz0NJfTRJiCfa17aCfiZuFRJh5dj2jnZI=; b=mdxEzUYKtbxCsNgOKs9zn5XMQuq3cEZiETLWk5TAHWtLOjE1iqKrFWQCjzwYN6uxS+ JeFtUyyPcfzFCe/ncB2m95I+eGtGWs3S4BLyBKHMhR604pMgOKtahle7vZ231npUiJRT ULc9XEpXL226ha6hsCSvPTPsuiCMEhwV+SPUMfAREks48gVdFpTP9IG6y9SprgkU118R 4hpXwV1ImziJ7y1vbZeE0OjchMDDS/A2K0X4dNJ4j9U6XPAoj7TmwK2oDcJKyVTNu6P+ y6mHRPhoSM0nqee58teQGOgIU9nLVo20F7Egjyht6s+rRTjdNeIMmAiBtSMnZGL7D6oU 61+A== X-Gm-Message-State: AOAM532C2yMZOaLV7PO0OgRl9x/91xou2in745wrZQWeHL9LLVZFK+gm 3WnH5R3rAIhSYPIFny8dO7BfJnqqsG+J8LQUFWXGPuu96Z8Ywp6HOcyYeqgJThkmxaABmDO7Txb zwMEGuMGt93t0x/NG2YLmbiTTyWPiUD+YonLBjTLTblLGV+/McUVv X-Received: by 2002:adf:fb0e:: with SMTP id c14mr14429551wrr.140.1617912985381; Thu, 08 Apr 2021 13:16:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIwIaAo5oCPu118XWrKhGbQi+Nic/eanTaCnDGq7QIZYT+he+8z9GdaAve8WhKurUn3nUuoA== X-Received: by 2002:adf:fb0e:: with SMTP id c14mr14429534wrr.140.1617912985197; Thu, 08 Apr 2021 13:16:25 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-192-147.adslplus.ch. [188.155.192.147]) by smtp.gmail.com with ESMTPSA id o62sm22690337wmo.3.2021.04.08.13.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 13:16:24 -0700 (PDT) From: Krzysztof Kozlowski To: Marek Szyprowski , Joerg Roedel , Will Deacon , Krzysztof Kozlowski , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iommu: exynos: remove unneeded local variable initialization Date: Thu, 8 Apr 2021 22:16:22 +0200 Message-Id: <20210408201622.78009-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_211626_729357_EFC857D0 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The initialization of 'fault_addr' local variable is not needed as it is shortly after overwritten. Addresses-Coverity: Unused value Signed-off-by: Krzysztof Kozlowski Acked-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index de324b4eedfe..8fa9a591fb96 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -407,7 +407,7 @@ static irqreturn_t exynos_sysmmu_irq(int irq, void *dev_id) struct sysmmu_drvdata *data = dev_id; const struct sysmmu_fault_info *finfo; unsigned int i, n, itype; - sysmmu_iova_t fault_addr = -1; + sysmmu_iova_t fault_addr; unsigned short reg_status, reg_clear; int ret = -ENOSYS;