From patchwork Fri Jan 15 18:15:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363721 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp91467jap; Fri, 15 Jan 2021 10:16:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsI+xMlOM9cH7mRGbbEQcHR45vdQQytvnTh7rKtdqqnW7fPDeIi5CA5ando+8Tn7/SwRcZ X-Received: by 2002:a17:90a:d145:: with SMTP id t5mr11974849pjw.104.1610734607953; Fri, 15 Jan 2021 10:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734607; cv=none; d=google.com; s=arc-20160816; b=sEaFO2ogxPoZERWdXOcMt5MHmHchQjTsIclbW0iCqEtH522F6ccyD5ghYkmCZAbO6V IyUM2Jx/zo78KWU/dZhKmQl79+5NJRARfX3EMZ4MmuoTn33jDbiQmvl1TRq1moTnl6yi bd77lONYF/9TK8o6lg7lVut4HMi2X/EWalV5i5ZCASgIY4nbtEnohCT2F+AjcSPX4jg+ t62mUCOLEGJzYRLX/OGNkx6ilBN3SzUyRpP50sKhSIOk+b1iL0mrU5rdAJ4B1eNTaL7c ovJ9WHZO/8TDnp8BN+3sV1UDQFzC6FDUXPM3Waayh3JvAUmwY76G3VbKN8Cv5Wx90Wes Hb0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=e0bG3UE3NB1VSzvuNR8tO2J3YuHFxa735ClwKc1mTyE=; b=URymwZktu485IbNrlcCpJqRSpT3i8w4570WCDm8XtXV/NIliTqDb9jc9cfyYlg6C3u EHkaOnjx7lLb6HgUxtP6XFvYHEePuTHXssF9UmCYWg57bd2J+mnlMzSbdQdfQXCJVPqH AHb+xT8c97pZSHhQGfKm3mLa91oJjlsTWHcbCH/h1hvpkdKCJEMBDLiSfEkk/Eg+MfNU jCoFzb9lfhXd9DSU3XH9t/7PiCRUi6931OIyQJpLolpif+tTYuHQYhGgL7cUe/frLQAh EOYk43GVnTp0hjRcw7uYVFFBjhVgdtpXFnO9nU6Ik7IXrVwfm7r1z3zRO7uLGMnYwAlP oKAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e7nYyY2n; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 94si1561678plc.196.2021.01.15.10.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e7nYyY2n; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F6F46E4B0; Fri, 15 Jan 2021 18:16:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 701DD6E4D2 for ; Fri, 15 Jan 2021 18:16:32 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id l12so4984416wry.2 for ; Fri, 15 Jan 2021 10:16:32 -0800 (PST) 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=FGPhURrdAfrcr7PbpwjcxwF7QYiZtJ0ThRqyiooaDBM=; b=e7nYyY2nViynQVTw0qCPH1uZMBKoFpKPnEbk0loJLIxWeIm19aIa6t4zpZJUQ76qbH sETMQNR8y68prpyoYG+MZGgwksMFqvJ8Tk+6+qAKoECjWM5GBXHFkT4xG/f5UcF26YDY dM29Plji930ezBILTG/C9mpVQs4PekZWEwhawyZ4KAzqU7PQbuQHosuXLVQcxsccezFY TEab+zsqKdNhDBV5tfUW7KDA+Knmcw8e0nkRgMsdiK6f4d8893cp/8Bxl6rfjAfgIKs2 mpkefoeDaPbx+trLknAyGsJDIYEO2UUT04giz3JiS/QDsAYsoTvrAidVP1gYX/9sxFrw bLZQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FGPhURrdAfrcr7PbpwjcxwF7QYiZtJ0ThRqyiooaDBM=; b=O7JkyAZx1/s9iJ3Tuv0knVDsC3sTVW7kjqTjzdXXVjTiIIDXfNyP1DtubiFtuzKAWa ZGJv65X7mP7oJPUme/chQIuZ77ftLkykpBzQh6MlGmG62C8vkOT+bVKLf3u/Ve26HEA6 XB4K2PsLyiMXArF5pEqv6hs/lJPzKGicIhAddRDsCnDBpA/xXGJLd6D7PdpAfSCPt6eW nP8JG84Hkf0wrWgnWBRXXdvLlphwD7VNLO4y2um87IAESJ95CuYz0MVVjp6us7JEQxMb TV8BYCkOSDuvNiUNZnHdoBSw1ZAFnJcZcbeZieZ5+Ib5qtWlg6Kh7ICAgwcEqO3UYYTF R92g== X-Gm-Message-State: AOAM5311VWitob04LfpB/gDXzlQ3ZSMqQJ/Yaxw4VnCyhvl5ycpZ4M1Z FXKnWkkn9VvZXTY5v1czfurAEw== X-Received: by 2002:a05:6000:1088:: with SMTP id y8mr10266247wrw.380.1610734591117; Fri, 15 Jan 2021 10:16:31 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id b133sm14405979wme.33.2021.01.15.10.16.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:30 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/29] drm/gma500/oaktrail_lvds_i2c: Remove unused variables 'tmp' Date: Fri, 15 Jan 2021 18:15:50 +0000 Message-Id: <20210115181601.3432599-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181601.3432599-1-lee.jones@linaro.org> References: <20210115181601.3432599-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jan Safrata Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function ‘get_clock’: drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:69:11: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function ‘get_data’: drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:83:11: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: Jan Safrata Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c b/drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c index d64aedc69845f..1d2dd6ea1c717 100644 --- a/drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c +++ b/drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c @@ -66,12 +66,12 @@ static int get_clock(void *data) { struct psb_intel_i2c_chan *chan = data; - u32 val, tmp; + u32 val; val = LPC_READ_REG(chan, RGIO); val |= GPIO_CLOCK; LPC_WRITE_REG(chan, RGIO, val); - tmp = LPC_READ_REG(chan, RGLVL); + LPC_READ_REG(chan, RGLVL); val = (LPC_READ_REG(chan, RGLVL) & GPIO_CLOCK) ? 1 : 0; return val; @@ -80,12 +80,12 @@ static int get_clock(void *data) static int get_data(void *data) { struct psb_intel_i2c_chan *chan = data; - u32 val, tmp; + u32 val; val = LPC_READ_REG(chan, RGIO); val |= GPIO_DATA; LPC_WRITE_REG(chan, RGIO, val); - tmp = LPC_READ_REG(chan, RGLVL); + LPC_READ_REG(chan, RGLVL); val = (LPC_READ_REG(chan, RGLVL) & GPIO_DATA) ? 1 : 0; return val;