Re: [PATCH 1/4] brcm80211: use proper ieee80211 routines

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

 



On Sun, Feb 27, 2011 at 11:30:10PM +0100, Gábor Stefanik wrote:
> >> -     lastframe = (fc & IEEE80211_FCTL_MOREFRAGS) == 0;
> >> +     lastframe = ieee80211_has_morefrags(h->frame_control);
> >
> > This is reversed.  It should be:
> >        if (ieee80211_has_morefrags(h->frame_control))
> >                lastframe = false;
> >        else
> >                lastframe = true;
> 
> lastframe = !ieee80211_has_morefrags(h->frame_control);
> 

That way is a bit uglier.  The ! and the i sort of blend together and
make it harder to read.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux