On Sunday 21 June 2009, Nori, Sekhar wrote:
> > +     /* high == card's write protect switch active */
> > +     return !!(__raw_readb(cpld + CPLD_CARDSTAT) & BIT(module ? 5 : 1));
> > +}
> 
> Is the !! a typo?

It's a C idiom to turn arbitrary values into zero-or-one.

In this case it might not be strictly necessary.

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to