lkml.org 
[lkml]   [2012]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 1/3] staging/rtl8192u: fix coding style problems
From
Date
On Sun, 2012-06-24 at 00:04 +0530, devendra.aaru wrote:
> Hi Joe,

Hi Devendra.

> On Thu, Jun 21, 2012 at 4:48 AM, Joe Perches <joe@perches.com> wrote:
> > I'd just make the return a bool instead.

> taking another variable and assign it like bool ret = !!bit, and
> returning ret?, i think this doesn't look better.

No. just
return val;
or
return (bool)val;

if using the implicit conversion bothers you.




\
 
 \ /
  Last update: 2012-06-23 23:21    [W:0.046 / U:16.132 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site