]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: et131x: fix | vs & typos
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 09:17:01 +0000 (12:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 15:47:51 +0000 (08:47 -0700)
commit38aab200a7bbff178f1646b1a177e6893d09f808
tree28795e577718539aff808d2b429668ab1ee0c158
parent89ff6043c091b11f721230d964df17f1683a7e5e
Staging: et131x: fix | vs & typos

These two places seem like they should be using bitwise OR instead of
bitwise AND.  The first one is a noop which is equivalent to:

imr |= (0x0100 & 0x0004 & 0x0001);

The second is sets lcr2 to zero instead of just clearing the high bits.

lcr2 &= (0x00F0 & 0x000F);

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c