From patchwork Wed Apr 14 18:11:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 421119 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp3777799jaj; Wed, 14 Apr 2021 11:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjaJx4hALCgi6OI3XXezTJ4fv6Dx1dX2NQKPBgXitZrMEiYCgUafXeJ9YCQmF/VlO85Esr X-Received: by 2002:a63:40c1:: with SMTP id n184mr7884746pga.219.1618423937796; Wed, 14 Apr 2021 11:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618423937; cv=none; d=google.com; s=arc-20160816; b=mRRjZkao6Ll+JGefP4gBvutzgVZ6nYGFTQbEAxrLRrM3YZhW7uLOTh2QkLC2F/zF2x G+HQzVLzffXpioOE7OF2gbudNP5u9Ojs1+6SPwyAAEI8W4U2YrWxtaWkJSftnjJxLVV+ guaGG6riMY12uOS5yUBfGWdRgo0KwtG5tJ7rwdD6AG5xcsMGnaS0svFPSFGSNDDbJFDm gg+DkrgpuuYjXhDfs1d1j6MU8d3Zy5xRAJRJ7eZRrepxRZHNqr4+4mvxIJ+rahc4SlyK 07f5AAymtj0UXr+sfF1DqDUyopUN/pm9WLYxkDHqeu+L7RBxxXeZZXehzp6qVdbV+oZ7 G7Tg== 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=thqYpiFyWX8v8JWJpuXMAOzfliSbiUb2UDsJeJFPhbw=; b=H9k9cgpZ4ca9fXy6o6WDw089o3UZPJnfVoSVtxZyecZ3Y/eILZHHH6gj/WkonMMpVM 82z3nkPqGqFVDrcar4nNQ1doklZkMaTcz5cRfG9RtB5zH+11e4xpjmXXg5fgqFl0iGBI 0RdlbsWlTb03zYBtt1nJOZTwm/9d9hKOO2bvUABQTX606oc+ucg/YgMe4f64lXSsKzwv tXNfeof4Vvc5F8NS4jp7dqp/rFR7kYVdBJVsSE5f2k6vo+g4OPlubkvGx4m4ywgNY7xt 9fSo2V1T6ws0WRsS8up5x8Ui+hwdtdYCjnb6jUJP0Ob58SqHgUFbdsQYPdseU6LTXKoW LnHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=qrsUqyKw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id i16si218746pgj.452.2021.04.14.11.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 11:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=qrsUqyKw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 B81B06E4CA; Wed, 14 Apr 2021 18:12:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 57F076E4CA for ; Wed, 14 Apr 2021 18:12:15 +0000 (UTC) Received: by mail-ed1-x52a.google.com with SMTP id 18so24855219edx.3 for ; Wed, 14 Apr 2021 11:12:15 -0700 (PDT) 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=XaDqv6uPzP6qKRYwsvhGZokvdMBhemyYbul7hQEy7vM=; b=qrsUqyKwLxiLtTJIKW7zoZJmBwPpulz25SwG7ERZAZkWHwI6CKy4JTKhtvcgtwmYxi DNsRI9oXwnlFM8y1ZQxc5NxqbU2oenwpdvY0dI7NFAKSSY72yhkPKfYTsP+GoSmaRFun 9LnnQ2uT/XyC5zUzBdzaivrAGo0yJfbDbmV4kfBwiXFUHCuFqdGRrS9n9ja+/6f6Wqen vF+5lUDtVuE/cxK/gcDTefDoPSsJPmXWFNHOzAZ2H1Mn32INVKNdqRs7hHCHcoQs4opK 31g/wHsY1AJ7spPFjrWUHTvT3cyV4tzX1N7oEfwvnqqjii2eCm4WJvPbdC01CeZp0qfO lRrw== 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=XaDqv6uPzP6qKRYwsvhGZokvdMBhemyYbul7hQEy7vM=; b=KBCig5IHM9XaA7epF2PDbx2gIj+RV86MpYtarN3CTLrLu5FhN6BQ9GrfVFXiUFXANL z4iRhlbCDrC5tRhJugfDwatKvvf8fRorH6rNYD2/a4snaGtax9HEHfVk+ZSlbmBya17m Q1cuPQ5PPQTWM3608S3L+UvjLq21wKtn2neMPRdSGAKrcrZmJRrhXyDt1B6I5qTebql4 frcwTCq1iMEpBBxWLz8vkpfmvUdKldOrtQROBZ+9uqAKluZ8/k8D9EqvXMHRIOnlQlrC G24DLNxUJee7RBvyqiuU654wd+CjmYHFFipPC1Y9/dJFoXQ+zfdmXoV6FDk0PHekCzmd eMRg== X-Gm-Message-State: AOAM533JooBJEmzdNYewRk9onBI6I2LfiXswE0lRh+gVMeHefoJFVCI9 b2hdMHsZNvuPVvVbf6SVcr8R0g== X-Received: by 2002:a05:6402:35cd:: with SMTP id z13mr179881edc.21.1618423934063; Wed, 14 Apr 2021 11:12:14 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id v1sm279493eds.17.2021.04.14.11.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 11:12:13 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/57] staging: fbtft: fb_ili9320: Remove unused variable 'ret' Date: Wed, 14 Apr 2021 19:11:10 +0100 Message-Id: <20210414181129.1628598-39-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210414181129.1628598-1-lee.jones@linaro.org> References: <20210414181129.1628598-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: Greg Kroah-Hartman , linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/staging/fbtft/fb_ili9320.c: In function ‘read_devicecode’: drivers/staging/fbtft/fb_ili9320.c:25:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Cc: linux-staging@lists.linux.dev Signed-off-by: Lee Jones --- drivers/staging/fbtft/fb_ili9320.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fb_ili9320.c b/drivers/staging/fbtft/fb_ili9320.c index f2e72d14431db..f0ebc40857b34 100644 --- a/drivers/staging/fbtft/fb_ili9320.c +++ b/drivers/staging/fbtft/fb_ili9320.c @@ -22,11 +22,10 @@ static unsigned int read_devicecode(struct fbtft_par *par) { - int ret; u8 rxbuf[8] = {0, }; write_reg(par, 0x0000); - ret = par->fbtftops.read(par, rxbuf, 4); + par->fbtftops.read(par, rxbuf, 4); return (rxbuf[2] << 8) | rxbuf[3]; }