Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756783Ab0KNS3R (ORCPT ); Sun, 14 Nov 2010 13:29:17 -0500 Received: from kroah.org ([198.145.64.141]:60955 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756637Ab0KNS3P (ORCPT ); Sun, 14 Nov 2010 13:29:15 -0500 Date: Sun, 14 Nov 2010 10:29:15 -0800 From: Greg KH To: Maya Erez Cc: 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 Subject: Re: [RFC/PATCH] usb: Add streams support to epautoconf. Message-ID: <20101114182915.GA20922@kroah.com> References: <1289715812-29000-1-git-send-email-merez@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289715812-29000-1-git-send-email-merez@codeaurora.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 22 On Sun, Nov 14, 2010 at 08:23:20AM +0200, Maya Erez wrote: > + /* Get the number of required streams from the EP companion > + * descriptor and see if the EP matches it > + */ Close, but this isn't the proper format for multi-line comments in the kernel. Please fix this. > + 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. thanks, greg k-h -- 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/