From patchwork Mon Jul 6 13:33:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234873 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781281ilg; Mon, 6 Jul 2020 06:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKwyc09Gm6gBFgFGCBR/y0t5UCDNc0jiq6dO98qFe317OkyKdiyiM4Ub48Y9fFvwqeROqK X-Received: by 2002:aa7:d845:: with SMTP id f5mr54527802eds.162.1594042570356; Mon, 06 Jul 2020 06:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042570; cv=none; d=google.com; s=arc-20160816; b=ICaI/r3XBaRaT/IPo0W9nHOmKENMTxWhNNdEj3luqzkjFvNBy0xhclmGnuT7EmsRrQ 2bEBlYdU/109p1NqhLa1F8GAGizUdVruZ6prdgZZp7BD2/aePkBgK3uQdEMG3zOmCsSg 12e2y46e7rdhcj7LLqqL32op6Sy76d9RNpMuUczLf15Jjb0pBIhenD5qitTGWLPBnX+h TGvNXwH3Ja1zuSGSmmbxrwHXvNcnEoysNm98pQZLL1NrA8pmu0gxgpdKz+4vVqYwA1Jb J5L7TMOyf3tdwhQCCX/eIx23CY2Li0bs04vnvdMSkpeJWj+UtUEU1OfvmL1fTotg/meR dzSg== 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=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=vDnzAKYgljCo8LvkWDI34IcSPX46rVgC4dr4doGVsln3LqY9RL2a8jOheUiCAziV3u 56G4Qk+UBmQoO9GOHe5JMPZQ+TvBL/OwqOb2vxJBr3+6gmPJva/CBdlD9DJ3iaEQTppD NoqR/WkAbD/EygeNCaiIl49tLb4u002k9kfFsBcOuRpUlya1kUu2LD3ngIwEXBnKzyJq pjtBHFtgGJIqNfHSq0V0xJdmyyTwltGpahjzeAx3I0rBvw5g2++Z/IO5ync1uVTn7guW Sj7nFAsQrd1yGnLPFltScdYNkrI+jwymkdR87i+LkgfiFLXJ314oY03L7dfQq30nHpgt YHRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I8l3xiex; 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 ef10si11913429ejb.519.2020.07.06.06.36.10; Mon, 06 Jul 2020 06:36:10 -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=I8l3xiex; 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 S1729177AbgGFNd6 (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729280AbgGFNd5 (ORCPT ); Mon, 6 Jul 2020 09:33:57 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0FB1C061794 for ; Mon, 6 Jul 2020 06:33:56 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l17so39372868wmj.0 for ; Mon, 06 Jul 2020 06:33:56 -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=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=I8l3xiexa/B1JIJEy1ir1PTxhlP/Lj9nM5zUnk6opUF/S6bgIchyQgbqNywo7zJNiU CoQXFx15q77CxSXe0ZRx0B6u3hwF7yxGPD7hJYpfn2bPzbIVajT32LzABpWqvW/U963W rUfVYKYz0ltiAGwB2k/N9DNXTj1wqtMBeV3wSCHJspqZ6qVlC/PJj7n8N2Tb7Ciy5Hs1 YD5+rf7z0Dd+Kbwx1fUXzNmr9b19aJ2JgHb6AopyQqJZZVptVhkZMnlql+lUz0ue0xbF 8kR979vuUk/grhSLXPoSlAHDyv5f75q8fcqNYTPokp9FBt6qc7wkfcTDvRW9v3MCYpNU OHKg== 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=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=OoAoaCstiaLKagXRNOMCorkaBTlPZdHs3rwBTMopCyoLw+NPziSrrybdv9xgeOpwMX f/m0aTZR2IaRdPuuVD3bZ7Km3FMeeEAjPr+MKagu2GTASxwyfqYl88x7SQBnTZJmbA54 nSrCF0UjQZiPDp0advBdMheDWbZwSGyw0hTWOTft6AkxsEeGILcGvLVnL209GtpcnIBi jiiMTLv3AyU8jceM7d0hI/BkOihoPMklXh80QaY3Pc6SVSRdwSb4gj0cfbLqyr8nVugr gN8KsyaR86R6Lfw8yOObfc/byOhtASV78ZSJlgQuBh/GOZ8no3znzDOY3gGhwNwuj80T d8fA== X-Gm-Message-State: AOAM530tljfWy4DpZbEGP3bj5JwEoMoTkypBEh2yE9sxPZyJ9dzvZcnm V5p6pWLdUADFXNA7dX5EYWUIrA== X-Received: by 2002:a1c:7306:: with SMTP id d6mr39593585wmb.113.1594042435462; Mon, 06 Jul 2020 06:33:55 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:54 -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 , Cristian Birsan , Felipe Balbi , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Subject: [PATCH 09/32] usb: gadget: udc: atmel_usba_udc: Remove set but unused variable 'pp' Date: Mon, 6 Jul 2020 14:33:18 +0100 Message-Id: <20200706133341.476881-10-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 Commit e78355b577c4b ("usb: gadget: udc: atmel: Don't use DT to configure end point") pulled out all functionality dealing with 'pp'. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/atmel_usba_udc.c: In function ‘atmel_udc_of_init’: drivers/usb/gadget/udc/atmel_usba_udc.c:2106:22: warning: variable ‘pp’ set but not used [-Wunused-but-set-variable] 2106 | struct device_node *pp; | ^~ Cc: Cristian Birsan Cc: Felipe Balbi Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Ludovic Desroches Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index d69f61ff01819..a10b8d406e62b 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -2103,7 +2103,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, { struct device_node *np = pdev->dev.of_node; const struct of_device_id *match; - struct device_node *pp; int i, ret; struct usba_ep *eps, *ep; const struct usba_udc_config *udc_config; @@ -2128,7 +2127,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, GPIOD_IN); if (fifo_mode == 0) { - pp = NULL; udc->num_ep = udc_config->num_ep; udc->configured_ep = 1; } else { @@ -2144,7 +2142,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, INIT_LIST_HEAD(&eps[0].ep.ep_list); - pp = NULL; i = 0; while (i < udc->num_ep) { const struct usba_ep_config *ep_cfg = &udc_config->config[i];