Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932173Ab0KKB0U (ORCPT ); Wed, 10 Nov 2010 20:26:20 -0500 Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]:4268 "EHLO sm-d311v.smileserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932078Ab0KKB0T (ORCPT ); Wed, 10 Nov 2010 20:26:19 -0500 Message-ID: <001a01cb813f$6fc49cb0$66f8800a@maildom.okisemi.com> From: "Toshiharu Okada" To: =?UTF-8?Q?Micha=C5=82_Nazarewicz?= , "Andy Isaacson" Cc: "Greg Kroah-Hartman" , "LKML" , "linux-usb" , "Wang, Qi" , "Wang, Yong Y" , "Andrew" , "Intel OTC" , "Foster, Margie" , "Ewe, Kok Howg" References: <4CC55AD9.6020800@dsn.okisemi.com> <20101103183750.GA23043@hexapodia.org> <001601cb7fca$918dc5e0$66f8800a@maildom.okisemi.com> Subject: Re: [PATCH v7] USB device driver of Topcliff PCH Date: Thu, 11 Nov 2010 10:06:21 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1983 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1983 X-Hosting-Pf: 0 X-NAI-Spam-Score: 1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 36 Hi Michal Thank you for your comment. I will modify. Best regards Toshiharu Okada (OKI SEMICONDUCTOR) ----- Original Message ----- Date: Wed, 10 Nov 2010 13:29:58 +0100 From: "MichaƂ Nazarewicz" > > In that case, make it: > > if (list_empty(&ep->queue)) { > if (halt) { /* halt or clear halt */ > if (ep->num == PCH_UDC_EP0) > ep->dev->stall = 1; > pch_udc_ep_set_stall(ep); > pch_udc_enable_ep_interrupts(ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); > } else { > pch_udc_ep_clear_stall(ep); > } > ret = 0; > } else { > dev_dbg(&dev->pdev->dev, "%s: list not empty", __func__); > ret = -EAGAIN; > } > > Ie. no need to put "ret = 0;" twice in the code. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/