From: Mauro Carvalho Chehab Date: Fri, 5 Jun 2015 14:06:46 +0000 (-0300) Subject: [media] lirc_imon: simplify error handling code X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af8a819a2513df4be461c6a29e3bdee6e23cf3be;p=pandora-kernel.git [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 --- Reading git-diff-tree failed