diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-04-18 23:37:08 +0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-04-22 01:47:49 +0400 |
commit | 045dfdb5c5e8fe49afe1de82fb94eaae8121e059 (patch) | |
tree | 6bd555424eac28a2b13277920fbc358a39c2de88 /drivers/video/mxsfb.c | |
parent | 49a8ee8ac3f20e4d8fe284012c082a793982d48f (diff) | |
download | linux-045dfdb5c5e8fe49afe1de82fb94eaae8121e059.tar.xz |
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 <Julia.Lawall@lip6.fr>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/mxsfb.c')
0 files changed, 0 insertions, 0 deletions