diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 11:06:46 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 11:26:48 -0300 |
commit | af8a819a2513df4be461c6a29e3bdee6e23cf3be (patch) | |
tree | 84f7e0ec0e3b33b791484f5d1d0b9ea0b1c73a97 /CREDITS | |
parent | b295e5c7d84721f76d1728f2ee4152a8cbb6ddaa (diff) | |
download | op-kernel-dev-af8a819a2513df4be461c6a29e3bdee6e23cf3be.zip op-kernel-dev-af8a819a2513df4be461c6a29e3bdee6e23cf3be.tar.gz |
[media] lirc_imon: simplify error handling code
Instead of using a state machine and a switch with lots of
fall-trough, use gotos and cleanup the error handling loop.
That removes those two smatch warnings:
drivers/staging/media/lirc/lirc_imon.c:933 imon_probe() warn: possible memory leak of 'context'
drivers/staging/media/lirc/lirc_imon.c:933 imon_probe() warn: possible memory leak of 'driver'
And make the error handling code more standard.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions