Return-Path: Cc: Jiri Kosina , Stefan Achatz , Antonio Ospite , Alexey Dobriyan , Tejun Heo , Alan Stern , Greg Kroah-Hartman , Marcel Holtmann , Stephane Chatty , Michael Poole , "David S. Miller" , Bastien Nocera , Eric Dumazet , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-bluetooth@vger.kernel.org" , "netdev@vger.kernel.org" Message-Id: <89BCFDE1-0D39-4248-84B2-E02C1480E067@signal11.us> From: Alan Ott To: Ville Tervo In-Reply-To: <20100923115108.GC2379@null> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [PATCH v4 2/2] Bluetooth: hidp: Add support for hidraw HIDIOCGFEATURE and HIDIOCSFEATURE Date: Thu, 23 Sep 2010 10:16:43 -0400 References: <1281442367.12579.206.camel@localhost.localdomain> <1281990059-3562-3-git-send-email-alan@signal11.us> <20100923115108.GC2379@null> List-ID: On Sep 23, 2010, at 7:51 AM, Ville Tervo wrote: > Hi Alan, > > One comment. > > How about a variable called ret and using that to return len or > errno? It > would eliminate code dublication. > Hi Ville, Where specifically? In which function? I've gone through it a couple of times and failed to find return statements which are superfluous. Maybe I'm missing something fundamental? Alan.