summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-05 16:06:46 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-05 16:26:48 +0200
commitaf8a819a2513df4be461c6a29e3bdee6e23cf3be (patch)
tree84f7e0ec0e3b33b791484f5d1d0b9ea0b1c73a97 /include/media
parent[media] usbvision: cleanup the code (diff)
downloadlinux-af8a819a2513df4be461c6a29e3bdee6e23cf3be.tar.xz
linux-af8a819a2513df4be461c6a29e3bdee6e23cf3be.zip
[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 'include/media')
0 files changed, 0 insertions, 0 deletions