irblaster: meson: fix Coverity errors [1/2]
authorBichao Zheng <bichao.zheng@amlogic.com>
Thu, 12 Sep 2019 07:17:46 +0000 (15:17 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 9 Oct 2019 01:21:34 +0000 (18:21 -0700)
commit4697d4b09d6a6d8bcca873c68f7f0728366c832a
treec87784172e97228c1508cd7589f8f5853039c1a4
parent4509f0590c4e259a235458b83fc5121840cca4f6
irblaster: meson: fix Coverity errors [1/2]

PD#SWPL-13973

Problem:
irblaster Coverity errors.

Solution:
1. Properly release resources.
2. Fix return value type.

Verify:
test pass on g12a_u200_v1

Change-Id: I50054ba3ac9f02aeeaa005b7823416b1c4c9a196
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
drivers/amlogic/irblaster/irblaster-nec-encoder.c
drivers/amlogic/irblaster/irblaster-rca-encoder.c
drivers/amlogic/irblaster/sysfs.c