]> git.baikalelectronics.ru Git - kernel.git/commit
[media] staging: lirc: Improvement in code readability
authorShailendra Verma <shailendra.v@samsung.com>
Thu, 10 Nov 2016 09:52:38 +0000 (07:52 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 14:21:25 +0000 (12:21 -0200)
commit656371eef53f83671bc8894932e2b637c97c5331
treeb9e47d7e3cd9684829b2a6c243fc3cf7e1268e4c
parentcb9240863a821e7b2efe97ea4e5a322672d1f5b6
[media] staging: lirc: Improvement in code readability

There is no need to call kfree() if memdup_user() fails, as no memory
was allocated and the error in the error-valued pointer should be returned.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/lirc/lirc_imon.c
drivers/staging/media/lirc/lirc_sasem.c