Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4072417ybg; Mon, 21 Oct 2019 03:22:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwng8u7ZWfnmc7mT8jhSYsPcR+wDFACESsHPlgRXhNXNbO5FBARufgsEG6ZtvWBaSQCy2YQ X-Received: by 2002:a17:906:3582:: with SMTP id o2mr21260490ejb.54.1571653365418; Mon, 21 Oct 2019 03:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571653365; cv=none; d=google.com; s=arc-20160816; b=ZUjn3jdEwbwTItn8GwJgWilQMPTaMptPY10W/+6cAL80RACOTnXqFX9YRONKHN5JXj iqWhPASukW/Cb8Kf2X4AQK8q1rJIjyI27pB/vUMlpbwmvzbIwr6IKjBlAEQm63d3HIis +qWjZ+D1JxbiJ6qp+NhvgM+uOD5ArEqUJ9Q501IUy2waDDmrJpQ1pbxe6IEyT8VbNQnj NyDQu4s9YHqMhOtoIRHWcddNLYIyQOHXmpdQmDrexfl+5+B2G9/q1j3uIF8chIvssOeo xIl1keGwiOVcXY8QeQvy3HEUwW5NdHeeVq1Jst6sYjXKabpZJ9ECKOjVey41veC0dWQp qj1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=EQlpvT45zkzDRsBV6XWhvvNlfUPpMZ0ROtCA+P1p4oo=; b=LoiADCdCum9KBP6tgA/d40rCm23YAdp/hvDBNyY0l6W3347ZatVAHTlEH2qu1/nyu5 Piv6YiZ33CFQFOxnf1e+SJjwWroxvZ38em5Se0CCD53IPcJd+S3VBE1kvqmoCV97Lbh1 tKBtriHQWGpyf3WXCSHZvCGiwRVFXjwiAkseeKTfNu7OkTcmr7n5LL6T7WL3/QBvvJWo 9xrqxOO7mvE2/GVpoKB7rFj53TgjQ8Rr1rcI2X5FPzHu5YbbgKhDpVdUWcmeNCy+hfeo bddfTTi4fsa2MO+MoQJNXCdREPUHShEBRVLUNZeU4OJAZj1uF/bxCgQMEjxwB/nbMDkP 2IUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z44si1076176edb.418.2019.10.21.03.22.22; Mon, 21 Oct 2019 03:22:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728149AbfJUKVX (ORCPT + 99 others); Mon, 21 Oct 2019 06:21:23 -0400 Received: from inva021.nxp.com ([92.121.34.21]:37208 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728126AbfJUKVW (ORCPT ); Mon, 21 Oct 2019 06:21:22 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5344B2000C1; Mon, 21 Oct 2019 12:21:21 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 54E86200A4E; Mon, 21 Oct 2019 12:21:16 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E0BBD402E5; Mon, 21 Oct 2019 18:21:09 +0800 (SGT) From: Yinbo Zhu To: Li Yang , Felipe Balbi Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ran Wang , Nikhil Badola Subject: [PATCH v1] usb: fsl: Remove unused variable Date: Mon, 21 Oct 2019 18:21:52 +0800 Message-Id: <20191021102153.16435-2-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191021102153.16435-1-yinbo.zhu@nxp.com> References: <20191021102153.16435-1-yinbo.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikhil Badola Remove unused variable td_complete Signed-off-by: Nikhil Badola Reviewed-by: Ran Wang Reviewed-by: Peter Chen --- drivers/usb/gadget/udc/fsl_udc_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index 9a05863b2876..381fdff12d4e 100644 --- a/drivers/usb/gadget/udc/fsl_udc_core.c +++ b/drivers/usb/gadget/udc/fsl_udc_core.c @@ -1595,14 +1595,13 @@ static int process_ep_req(struct fsl_udc *udc, int pipe, struct fsl_req *curr_req) { struct ep_td_struct *curr_td; - int td_complete, actual, remaining_length, j, tmp; + int actual, remaining_length, j, tmp; int status = 0; int errors = 0; struct ep_queue_head *curr_qh = &udc->ep_qh[pipe]; int direction = pipe % 2; curr_td = curr_req->head; - td_complete = 0; actual = curr_req->req.length; for (j = 0; j < curr_req->dtd_count; j++) { @@ -1647,11 +1646,9 @@ static int process_ep_req(struct fsl_udc *udc, int pipe, status = -EPROTO; break; } else { - td_complete++; break; } } else { - td_complete++; VDBG("dTD transmitted successful"); } -- 2.17.1