From patchwork Wed Aug 21 17:34:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hariprasad@freedesktop.org, Kelam@freedesktop.org, hariprasad.kelam@gmail.com X-Patchwork-Id: 11108701 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 79D1F112C for ; Thu, 22 Aug 2019 08:16:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 6299D2342D for ; Thu, 22 Aug 2019 08:16:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6299D2342D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=freedesktop.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52F456EAA7; Thu, 22 Aug 2019 08:15:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id 23F426E386 for ; Wed, 21 Aug 2019 17:35:52 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id f17so1879020pfn.6 for ; Wed, 21 Aug 2019 10:35:52 -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:cc:subject:date:message-id; bh=sdUK8Tz+No9ik1oP4rJK2D1dir0wSzSoNAXhDl4taSk=; b=hw/U0dzK6FRNTGr4ni9bE4jTLtUhRp6ytXupFFu1Fbx0vsnhttkDEzssu7reCI2iKD 2jVqTubM4oIMa5Ljy4SXdCg2x5KudJrzc2SNdHyet6+g43IqzIQ3luJgcb40/vz1oX8C dFOxZclu363GM3/z+K6gwcIFAPJql4/ERZbdGFuvTYyPtVig7LnqOlxnMqM2Tywui/mx nNO0H/yBWuOSaCru+PRPsSVJns07vDD9y+vXwxcvr+cm69BbL2E0grTlG9UTRZQ0bnRN xpxcFgtlBxXlihLegw+qzsEICyue6KGrFVpASGxb+LO1ObWQkNqNYwVJihvijyHhWxMR uaqw== X-Gm-Message-State: APjAAAUDw6YzsTCK97LqvbsOmyWZ/VN67vt0B2IezEg4FtOFxBktrK55 6mg35yeRNeZBk6tL8Gl9dZY= X-Google-Smtp-Source: APXvYqzhi9ADS9jQyP0DX2AofcafTJCGGSi827XjE1MNu6fFpByuoDh3+ceY6sG9VVVL1Kgt4I4h3A== X-Received: by 2002:a63:2b84:: with SMTP id r126mr30871227pgr.308.1566408951638; Wed, 21 Aug 2019 10:35:51 -0700 (PDT) Received: from localhost.localdomain ([183.83.90.246]) by smtp.gmail.com with ESMTPSA id q4sm31360714pff.183.2019.08.21.10.35.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Aug 2019 10:35:51 -0700 (PDT) From: hariprasad@freedesktop.org, Kelam@freedesktop.org, hariprasad.kelam@gmail.com To: Subject: [PATCH] gpu: drm: exynos: Remove set but unused value Date: Wed, 21 Aug 2019 23:04:56 +0530 Message-Id: <1566408896-8212-1-git-send-email-hariprasad.kelam@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Thu, 22 Aug 2019 08:14:56 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hariprasad Kelam , linux-samsung-soc@vger.kernel.org, David Airlie , Seung-Woo Kim , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Kyungmin Park , Kukjin Kim , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Hariprasad Kelam fix below defect reported by coverity In exynos_dsi_read_from_fifo: A value assigned to a variable is never used. fix Defect:1451826 Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 6926cee..5310879 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1051,12 +1051,11 @@ static void exynos_dsi_read_from_fifo(struct exynos_dsi *dsi, } length = (reg >> 8) & 0xffff; - if (length > xfer->rx_len) { + if (length > xfer->rx_len) dev_err(dev, "response too long (%u > %u bytes), stripping\n", xfer->rx_len, length); - length = xfer->rx_len; - } else if (length < xfer->rx_len) + else if (length < xfer->rx_len) xfer->rx_len = length; }