Re: [PATCH V2 1/3] staging/rtl8192u: fix coding style problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxx> 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.


_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Video for Linux]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Free Singles Community]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Yosemite Backpacking]

Add to Google Powered by Linux