From patchwork Mon Jul 6 13:33:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234866 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780824ilg; Mon, 6 Jul 2020 06:35:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx+8ghKeMyBqiD8e3Fd4JWivQC3q32eeff2F/RvOlignRHskeMFQPg6amJoq/qeBf+X33B X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr56465584edx.239.1594042536531; Mon, 06 Jul 2020 06:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042536; cv=none; d=google.com; s=arc-20160816; b=xpbhmNUNmO/Ieturql2y7V0Z35IbgebLdqB4s0aCw+omOLEXOO4792CPrcqFWarE7v zwJ4BbbOT0EcmGcADrI73FERHqF384yH3xd4ypB8V2Mq7BD59g4+DrKRmt4UZwN9eG0D qkaYYkWa+z2G0UK0vsCOuDRxH97s6lT2CAWRx5hEd9K6IiI0yHa/NYlc4KMbX4NGCTQ4 jpwoI1jdvc8l6cALyN88PiCbf3sy898og3S0O2a7v2LCzsUN5BQja6G8ZcNcg7RFPz8t MvEYfIP1vy5CqWtO1PniJ+XraWp1VfTcOdmU0u494tFUTRQbFCT3tFbc+w8TuyQGDcRD CLVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=NNP3deSICVJCB/eSiAVRuO9Uclp8SmdJTB4vVV/Kb283A9MT2iVgEELWS2uypgtocp GXdeymfMvHc3OHb+M8gGdrC/xWe4PF4tbc87yf0224MQFjeUeWa+uu3m0TLSdp6MI0bC eW9iVLv3IkSqDMSyK3nr+sZZ45Lltdeqt+USqbSPZKWBuAwMIYEygvIyFtGYtp0pG+uY EyVV+9wxhqOK6T2UWzb6XM9AgtKph1A9suc0GpQHeZmS09ElILarYlQB1yir3xfJmhbG vvcYx1jF4f0qDEUudn2HHqa6dRCnh3o5IwIWm682Yp5quw1sLinX/nNiFP8athwVv1jm PN3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X6m4FfX9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si13538081edn.360.2020.07.06.06.35.36; Mon, 06 Jul 2020 06:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X6m4FfX9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729507AbgGFNfb (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbgGFNeH (ORCPT ); Mon, 6 Jul 2020 09:34:07 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769F9C061794 for ; Mon, 6 Jul 2020 06:34:07 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id f139so42144418wmf.5 for ; Mon, 06 Jul 2020 06:34:07 -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=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=X6m4FfX9HVkIRr8hUC5SaedwmejM6tHKMtWNuYYdOU9/56+ZZC56eTIFTX8DjtS4ei zSEhErkoaN6DfMdi+KsFgHeCmraKSYyUDTDBvwE/NCDhuOL2MzmazL5R1kxb0lRkL57E 0VCH1foQu1eLxq00OzM0aq/zolR4GeCqxx9kPmH0iG1YSvxUN+IFUnR+g7vO2/B1H963 +qy2O46U+JBmheOcj0HsXB/yrv+qOhS2qFnevyOLLYNtUuzADE+5fNDvPnKj35lP87aG DkkfR99J7Nsi0YY/wEHEgayT1PyA0037NW+/sIVocVBF9dVaHhoNijkk9NzyIV3eTstA gKwQ== 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=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=ssk/rfi3ZdqjI05RaA6rvsfoS0MI9QgJbterBP5UoAD+zMdnPVksavRwu1WhFkSE7T MWXjhGwA/AHraUaV9gqePbRGJJ16yTL1XKpxFBadHjcCr6MX+kx0lnJfLmhjH7Rr/maZ PPlTJ1yotRzHjOhcoPqCuuGygxb7zV57DhjiTi00S5b6jCdLqLE7cUywNw4UGBmrOovZ Xss5FeVjY3F9nn4mhLm3cDzi64IsT/G4+i9DzQhCns9xlk/wD/lxeNoIcTVKzvHdoy0w oqvQfy3KFA8SLLJBGaFtIsNLGF8r6OOFx4TIFfH4jYt5EotNYn+Z/o/jzfrht3MM8o/4 fnMA== X-Gm-Message-State: AOAM532xGTlUJfZVh2QVqbufXfyxux4HMq2CMEAHrCQqnOpABoUVq4Pf OPZwaH5oxJcNVdZb7KJ0+J3rMA== X-Received: by 2002:a1c:7306:: with SMTP id d6mr39594381wmb.113.1594042446244; Mon, 06 Jul 2020 06:34:06 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:05 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Yuan-Hsin Chen , Feng-Hsin Chiang , Po-Yu Chuang Subject: [PATCH 18/32] usb: host: fotg210-hcd: Remove unused variable 'hcc_params' Date: Mon, 6 Jul 2020 14:33:27 +0100 Message-Id: <20200706133341.476881-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The result is actually read into fotg210->caps->hcc_params. No need to popuate an unused varible with the unchecked return value from fotg210_readl(). Fixes the following W=1 kernel build warning(s): drivers/usb/host/fotg210-hcd.c: In function ‘fotg210_run’: drivers/usb/host/fotg210-hcd.c:5013:6: warning: variable ‘hcc_params’ set but not used [-Wunused-but-set-variable] 5013 | u32 hcc_params; | ^~~~~~~~~~ Cc: Yuan-Hsin Chen Cc: Feng-Hsin Chiang Cc: Po-Yu Chuang Signed-off-by: Lee Jones --- drivers/usb/host/fotg210-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index f967adf2d8dfc..51dbbb0e768bc 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -5010,7 +5010,6 @@ static int fotg210_run(struct usb_hcd *hcd) { struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); u32 temp; - u32 hcc_params; hcd->uses_new_polling = 1; @@ -5033,7 +5032,7 @@ static int fotg210_run(struct usb_hcd *hcd) * Scsi_Host.highmem_io, and so forth. It's readonly to all * host side drivers though. */ - hcc_params = fotg210_readl(fotg210, &fotg210->caps->hcc_params); + fotg210_readl(fotg210, &fotg210->caps->hcc_params); /* * Philips, Intel, and maybe others need CMD_RUN before the