mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
Revert "driver, iio, mpuxxx: do nothing when fifo count is zero"
This reverts commit 98827e305e.
Change-Id: I603799406f380fc649083e2ef66e8e78608f378c
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
This commit is contained in:
committed by
Gerrit Code Review
parent
dd3d3cbfee
commit
96d2053b15
@@ -1002,10 +1002,8 @@ irqreturn_t inv_read_fifo(int irq, void *dev_id)
|
||||
if (result)
|
||||
goto end_session;
|
||||
fifo_count = be16_to_cpup((__be16 *)(&data[0]));
|
||||
/*
|
||||
if (fifo_count == 0)
|
||||
goto flush_fifo;
|
||||
*/
|
||||
if (fifo_count < bytes_per_datum)
|
||||
goto end_session;
|
||||
/* fifo count can't be odd number */
|
||||
|
||||
Reference in New Issue
Block a user