irblaster: meson: fix Coverity errors [1/2]
authorBichao Zheng <bichao.zheng@amlogic.com>
Thu, 12 Sep 2019 07:17:46 +0000 (15:17 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 27 Sep 2019 11:58:28 +0000 (04:58 -0700)
commit03a3cb46a6c35bbd1a1edbd35476f2cf058ee510
treeaa86e04b629ecfa69b79e4293ca1d0853a817a72
parent302a65f3340835792582fd44152bf581dc0f8344
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