[media] lirc: use kfifo_initialized() on lirc_buffer's fifo
authorMartin Kaiser <martin@kaiser.cx>
Tue, 28 Oct 2014 21:51:01 +0000 (18:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 14:53:05 +0000 (12:53 -0200)
commit77d381af73e905c48b992d5d8426376469bc9576
treef957c84c6f10aed179e201ea1234e64825fd8e05
parent373145282ea61c2a01980914ee5bbff7cf62afd6
[media] lirc: use kfifo_initialized() on lirc_buffer's fifo

We can use kfifo_initialized() to check if the fifo in lirc_buffer is
initialized or not. There's no need to have a dedicated fifo status
variable in lirc_buffer.

[m.chehab@samsung.com: add the same change to lirc_zilog, to avoid
 breaking compilation of staging drivers]
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/lirc/lirc_zilog.c
include/media/lirc_dev.h