Search Linux Wireless

Re: [PATCH] nl/cfg/mac80211: use BIT(x) instead of (1 << x)

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

 



Hello Johannes,

On Mon, Jul 09, 2012 at 11:22:04AM +0200, Johannes Berg wrote:
> 

...

> 
> >  		rthdr->it_present |=
> > -			cpu_to_le32(1 << IEEE80211_RADIOTAP_TSFT);
> > +			cpu_to_le32(BIT(IEEE80211_RADIOTAP_TSFT));
> 
> This makes sense, of course, it's actually doing bitwise operations.
> 
> johannes

Thank you for your feedback.
At the beginning they confused me a BIT(), but now it's clear :)
I'll try to come up with a v2.

Thank you again.
Cheers,

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

Attachment: pgpJAbNvnLNyn.pgp
Description: PGP signature


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux