From mboxrd@z Thu Jan 1 00:00:00 1970 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, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 1E9FDC43460 for ; Thu, 8 Apr 2021 20:16:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4079610CF for ; Thu, 8 Apr 2021 20:16:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232255AbhDHUQl (ORCPT ); Thu, 8 Apr 2021 16:16:41 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42280 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbhDHUQj (ORCPT ); Thu, 8 Apr 2021 16:16:39 -0400 Received: from mail-wm1-f70.google.com ([209.85.128.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lUb4k-0005dg-Gu for linux-kernel@vger.kernel.org; Thu, 08 Apr 2021 20:16:26 +0000 Received: by mail-wm1-f70.google.com with SMTP id p11-20020a05600c358bb029011630279b61so53443wmq.7 for ; Thu, 08 Apr 2021 13:16:26 -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=KplNFOEFyn38kRA59eKY0cLN+qMEEfWNRcdJkqbOatQZijhHQjMq/Xlc+rIjGI0qgx 667My7cdgOivOjzHgOY60lK4X7o2gK+Uv5gPZ8Qy7RGRignMg0d+Z/VKjrWEdO42w01g zme19IgkzHGdVPNO7EV1INtOyR6yVnv3KWc532Ks90VP+aK4zU3Si8z2Di0/5DkhM/Ov Xr0nX0yD2sm40+Qe9vNPlTIaI+CXVao9UzWrSiFdIfGoMMGDHQBn8r8sw0LT2F7gc4G0 qnG2VSXaTM/tT1mpZ1YSLywKvYbCxEY5irBAcJf6bnRfuaXdzTL1k1q4AddKApDPid3Z /zvw== X-Gm-Message-State: AOAM531YkKJXO/x/yIS9q7d2Cye1HUPFUJgli+PwLFrLEzvc1/H4kltr 4iJ2fBmsTrCT+8YjItk+uuq7Tv2yPbCKoMJQ9PLPXGvE8JAwSm3TbUh8M77c181o8ut/loy5Qkt RJlvWZPHEaO2HqQ+V4TxmxCGI93PBKYd8z0bnysI40Q== X-Received: by 2002:adf:fb0e:: with SMTP id c14mr14429553wrr.140.1617912985385; 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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; -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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.7 required=3.0 tests=BAYES_00, 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 6BFE2C433B4 for ; Thu, 8 Apr 2021 20:34:31 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 B485461159 for ; Thu, 8 Apr 2021 20:34:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B485461159 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 40D2C419A7; Thu, 8 Apr 2021 20:34:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wz_pnQdD2CWs; Thu, 8 Apr 2021 20:34:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTP id F23FC4185C; Thu, 8 Apr 2021 20:34:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D9699C000C; Thu, 8 Apr 2021 20:34:27 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0D3C8C000A for ; Thu, 8 Apr 2021 20:16:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E34C4607B3 for ; Thu, 8 Apr 2021 20:16:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pHtxPJ94BayO for ; Thu, 8 Apr 2021 20:16:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by smtp3.osuosl.org (Postfix) with ESMTPS id 20202607B1 for ; Thu, 8 Apr 2021 20:16:28 +0000 (UTC) Received: from mail-wr1-f69.google.com ([209.85.221.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lUb4k-0005db-7R for iommu@lists.linux-foundation.org; Thu, 08 Apr 2021 20:16:26 +0000 Received: by mail-wr1-f69.google.com with SMTP id t2so1468109wrr.1 for ; Thu, 08 Apr 2021 13:16:26 -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=k1DjYa7NiNQA4CQ9F+vJZCHer0ldhHzwikiaoxf55fdIzOWIPaY/HpNqqS3KFFGlsu yjWU8scz/h5VCwyyJ1TaofDY4CUN+m6myoG+XEFTt4AOPiQo7iS1wpk0ePWnWcdvsfN3 gBujXlpC2/kxMQS0KALonyaw8BCRa9DyAV10Wcedypn17r0/JTOV4Q6aKPIzJQ6QHgAR ZanPDu+xh3AtDaEwZRo/aCozny8WnXIjnzu/HHJbnFr8rVTogl8Y+HQx4gVwO3M/8Vk1 9anGoz0QYnu4R+JOxpEMvWkSreKTXc7otlV9s17PNyC2vyG42GTgh860VGtXFU9qmq7J QhRg== X-Gm-Message-State: AOAM530K1pQfs53gGX5xqqvm+0gPrM4pwWNGDsaupjHVkdJZgF+/u8BB AKwMe044XT2HRirTtPlQo9h5SgJQLz7s8VCINjAWGW7V2rIxuiEXPKf7iANbD8wf1Y3DP6jB4gR +ptbJ2tkIjwqTzL67GICkfTvzxHCfEUThdE/2EzsaFB1UYhQ= X-Received: by 2002:adf:fb0e:: with SMTP id c14mr14429549wrr.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-Mailman-Approved-At: Thu, 08 Apr 2021 20:34:27 +0000 X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" 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 --- 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; -- 2.25.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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; -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel