Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2488504ybg; Fri, 31 Jul 2020 00:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWp1IIpsy5O5euXsdRCa2HSrCP5Ct9M4CV+bYgR756JUP7UlxtlTZqUogGUTvLPvL8DCVb X-Received: by 2002:a17:906:178b:: with SMTP id t11mr2682115eje.489.1596181342937; Fri, 31 Jul 2020 00:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596181342; cv=none; d=google.com; s=arc-20160816; b=s4hGw9Woy3vANZliD56AsYdMV6BvfwcHdn+0Dh8d7npij0QfoRTKoitqA/DAJaphfV bSYbV0X0TAxmzNrZo/GTSdh3I8C+MluSPNLKB95/0fB/Qm6UZPn30HPaamBqLkQEZcCV VLf59YsECk7fh/N3t6MjN51J1OULzuX/c8os5CSv+n76uNAnZwfPaDaVlRJs2qohDgLV AFHdAWnCsmthoq8fl4M4FaroG7ywvNnerYv7+dyx6GXPbIWgsmDnD9MmDx4jSJuBjuV7 tPl/kU0cdVn17a6PW48SUUQ/elsj7Q9NgMO/F3FlITa1qCXp+dQFoEw/93M6udwQZ/PO VqCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=kyH/ssrp0dFt4WAhA3YLaWXVQiIScavrHBtoJ4nQl4g=; b=RdWEYlIQi7bIWm6mJHScPnquT4J1oMHQ9szSXmVHxIzbJ0IdqmAs7/4MrSUYt4P+DE oyHuq1oY53irladRLMV4bq2XCgQE+KZjf3Ujc8kLH6Ld/K8g117sIN85nFvZ3icjycYm FYQtfp5UzeDmEiDvSJD/g7z61TTjtZZkjM1ZWR+wfGnBHWsWpsmjJRfzQUUGSWe9U0Q7 h6M2QuBumUeA0jZD0nWqC0FqvuCKvDYLnyHLBGEIF7ncJrcEyf4C73g/7g48TIT5CFV8 Bx2ktYFF0op4PcWUo23ezmoAWi32yFN1unUu/uQ5KS3yIqIvzSzo8rxqA+b53u8fpQs4 FRnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=evf8FUsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si4862099eds.73.2020.07.31.00.41.59; Fri, 31 Jul 2020 00:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=evf8FUsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731682AbgGaHla (ORCPT + 99 others); Fri, 31 Jul 2020 03:41:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:50140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731574AbgGaHla (ORCPT ); Fri, 31 Jul 2020 03:41:30 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ED9E92067D; Fri, 31 Jul 2020 07:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596181290; bh=CG+f7G/BMk8PqwRiuW/mxJ+QjaxfXivzTQiS/AG/5rU=; h=From:To:Subject:Date:From; b=evf8FUspZwRBhjtByWSNvNGR74Q9fWsMQMytYVGV1XWa6PLASa2cjINjRDUBsMJDx JheDYRBCLhoFSn2LoJdW9KYScilUh81c87af0OUA2KFEf5N7TIll+nppNTa6WM+FRf j++RJ3ddE56RwT1BLff817G+gwB7G2cKRSTLwAZk= From: Krzysztof Kozlowski To: Felipe Balbi , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Chunfeng Yun , Nathan Chancellor , Krzysztof Kozlowski , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: gadget: s3c: Remove unused 'udc' variable Date: Fri, 31 Jul 2020 09:41:22 +0200 Message-Id: <20200731074122.6484-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused 'udc' variable to fix compile warnings: drivers/usb/gadget/udc/s3c2410_udc.c: In function 's3c2410_udc_dequeue': drivers/usb/gadget/udc/s3c2410_udc.c:1268:22: warning: variable 'udc' set but not used [-Wunused-but-set-variable] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/gadget/udc/s3c2410_udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c index bc2e8eb737c3..e875a0b967c0 100644 --- a/drivers/usb/gadget/udc/s3c2410_udc.c +++ b/drivers/usb/gadget/udc/s3c2410_udc.c @@ -1270,7 +1270,6 @@ static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, static int s3c2410_udc_dequeue(struct usb_ep *_ep, struct usb_request *_req) { struct s3c2410_ep *ep = to_s3c2410_ep(_ep); - struct s3c2410_udc *udc; int retval = -EINVAL; unsigned long flags; struct s3c2410_request *req = NULL; @@ -1283,8 +1282,6 @@ static int s3c2410_udc_dequeue(struct usb_ep *_ep, struct usb_request *_req) if (!_ep || !_req) return retval; - udc = to_s3c2410_udc(ep->gadget); - local_irq_save(flags); list_for_each_entry(req, &ep->queue, queue) { -- 2.17.1