Re: [patch 2/2] staging: sb105x: clean up interface type test

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

 



On Wed, Jan 09, 2013 at 10:12:14AM +0300, Dan Carpenter wrote:
> IIR_RS232 is zero so "if (IIR_RS232 == (b_ret & IIR_RS232))" is always
> true so RS232 was always chosen by default.  The test should be
> "if (0 == (b_ret & 0x30)) { ".  The other tests should also be in that
> format.
> 
> My patch doesn't change how the code works.  I've left the RS232 as the
> default and cleaned up the other checks.
> 

Sorry that was a bad change log.  My patch actually does change how
the code works...  If 0x30 is set then it now defaults to RS232
instead of RS485.

But I think it's the right thing to do.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux