]> git.karo-electronics.de Git - linux-beck.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)
commit30f88a42b65858d777b8dfb40bb222fa31d5f0d9
treeb9e47d7e3cd9684829b2a6c243fc3cf7e1268e4c
parent2bfc04d64db66fa62021a988740e8028f018b9c3
[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