]> git.baikalelectronics.ru Git - kernel.git/commit
staging: precedence bug in crystalhd_stop_tx_dma_engine()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 15 Jan 2012 11:29:39 +0000 (14:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:13:55 +0000 (09:13 -0800)
commitcd3f9c114ea06753254f7f38f2834cc2cd9bcb92
treeb6aeda5be0654c634485ebd0f13c06eecb8e85ef
parent866a1a57f8092f56da896b1983a6a87d74d4ad8c
staging: precedence bug in crystalhd_stop_tx_dma_engine()

The intent here is to see if we have cleared the DMA_START_BIT flag.  We
clear it a couple lines later.  The current code has a precedence bug so
it is equivalent to "if (!dma_cntrl) { ...".

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