From: Julia Lawall Date: Wed, 18 Apr 2012 19:37:08 +0000 (+0200) Subject: drivers/video/ep93xx-fb.c: clean up error-handling code X-Git-Tag: v3.5-rc1~7^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=045dfdb5c5e8fe49afe1de82fb94eaae8121e059;p=pandora-kernel.git drivers/video/ep93xx-fb.c: clean up error-handling code There were two problems in this code: failure of the setup function should free locally allocated resources like other nearby failures, and the test if (&info->cmap) can never be false. To generally clean things up, this patch reorders the error handling code at the failed label and adds labels so that the conditionals are not necessary. Signed-off-by: Julia Lawall Acked-by: H Hartley Sweeten Reviewed-by: Ryan Mallon Signed-off-by: Florian Tobias Schandinat --- Reading git-diff-tree failed