From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 338F3C433DF for ; Fri, 10 Jul 2020 07:22:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 000572078D for ; Fri, 10 Jul 2020 07:22:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1z8jfNSZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 000572078D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=fXspdqdaRKydWzckFgs2bqzl0v/uNUesOv7q/zyUKz8=; b=1z8jfNSZoVWfbG6S+XbGxnb2Mr 5mzlt+CQb9mjWAGHAQXCTtjmZuXK5bbf29ULHNy4cPusAHjZWtwImDy0016+oKEfkIsN/E/pojMtJ IVCAnBuQWXnK73jU2XkxvHNr9uhAQ2GXKY8F7B9xD+53oVoUoVdOBYlTR/+U6VN36sKcha42S9dyp 7rQZwGgVFqb/CP8D8aCLKZefpbXaZYnksgYcWORtZTB7QTzM+99ebqJUh9FWl+M0pZiR09WXbbjHV MVupYxr6rnUqao+wBPcyTohJMS4oWp+7sHbV37eS851flfkf0G55dpbKTSdoiJejol4BSUKAoS1T5 X2Y3j9zg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtnL8-0008HB-Du; Fri, 10 Jul 2020 07:20:58 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtnL4-0008Fl-Nm for linux-arm-kernel@lists.infradead.org; Fri, 10 Jul 2020 07:20:55 +0000 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 08D6C239FB6EC9E5B9A1; Fri, 10 Jul 2020 15:20:36 +0800 (CST) Received: from kernelci-master.huawei.com (10.175.101.6) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Jul 2020 15:20:26 +0800 From: Wei Yongjun To: Hulk Robot , Cristian Birsan , Felipe Balbi , "Greg Kroah-Hartman" , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Gregory CLEMENT Subject: [PATCH -next] usb: gadget: udc: atmel: remove unused variable 'pp' Date: Fri, 10 Jul 2020 15:30:33 +0800 Message-ID: <20200710073033.58714-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200710_032055_028419_7B511744 X-CRM114-Status: UNSURE ( 7.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-usb@vger.kernel.org, Wei Yongjun , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Gcc report build warning as follows: 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; | ^~ After commit e78355b577c4 ("usb: gadget: udc: atmel: Don't use DT to configure end point"), variable 'pp' is never used, so removing it to avoid warning. Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index d69f61ff0181..a10b8d406e62 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]; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel