Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758098AbcLRTYx (ORCPT ); Sun, 18 Dec 2016 14:24:53 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21431 "EHLO sender163-mail.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752170AbcLRTYw (ORCPT ); Sun, 18 Dec 2016 14:24:52 -0500 Date: Sun, 18 Dec 2016 19:24:46 +0000 From: Afonso Bordado To: Joe Perches Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: emxx_udc: Fix CamelCase styling issue Message-ID: <20161218192446.gtkaww74z4zscrmg@AYYLMAO> References: <20161218164650.pgrls6ead7jfgyj4@AYYLMAO> <1482082825.2431.5.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1482082825.2431.5.camel@perches.com> User-Agent: NeoMutt/20161126 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 773 Lines: 24 > Instead of merely converting Hungarian CamelCase to lowercase > with underscores where word transitions occurred, try reading > the code and making sense of what it does to perhaps find a > better variable name instead. Maybe eliminate the variable > altogether. > > iWordLength could be reads or numreads Ok! > btw: what happens if length is not a multiple of sizeof(u32)? Reading over the code (something I should have done the first time) it seems that it rounds down, not doing the full transfer, and EP0_out_OverBytes handles the remaining transfer. Since EP0_out_OverBytes is only called once and for this purpose would it be perferable to do that on EP0_out_PIO? > nret is more commonly ret > p_buf is also not common linux naming, buf is more common. Ok!