From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns1.siteground211.com ([209.62.36.12]:44960 "EHLO serv01.siteground211.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969Ab0KNUP3 (ORCPT ); Sun, 14 Nov 2010 15:15:29 -0500 Subject: Re: [RFC/PATCH] usb: Add streams support to epautoconf. From: Felipe Balbi In-Reply-To: <20101114182915.GA20922@kroah.com> References: <1289715812-29000-1-git-send-email-merez@codeaurora.org> <20101114182915.GA20922@kroah.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 14 Nov 2010 22:15:33 +0200 Message-ID: <1289765733.15533.4.camel@eowin> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: Greg KH Cc: Maya Erez , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, David Brownell , Greg Kroah-Hartman , Mike Frysinger , Cliff Cai , Michal Nazarewicz , Fabien Chouteau , Tejun Heo , linux-kernel@vger.kernel.org Hi, On Sun, 2010-11-14 at 10:29 -0800, Greg KH wrote: > > + if (USB_ENDPOINT_XFER_BULK == type) { > > Ick, no, don't do comparisons like this. The compiler will let you know > if you acidentally get it wrong with only one '=' character, don't do > things "backward" like this just to work around stupid compilers. we actually have helpers for this and usb_endpoint_xfer_bulk(desc) would do it. -- balbi