From: YAMANE Toshiaki Date: Wed, 14 Nov 2012 10:40:57 +0000 (+0900) Subject: staging/omapdrm: Fix spacing coding style in omap_plane.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=373de7f4f7a52d3d18cbe78087325f98e3b7cded;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging/omapdrm: Fix spacing coding style in omap_plane.c The following warning fixed. - WARNING: braces {} are not necessary for single statement blocks Signed-off-by: YAMANE Toshiaki Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/omapdrm/omap_plane.c b/drivers/staging/omapdrm/omap_plane.c index 1b3a9febd40a..25d78ca6fdb4 100644 --- a/drivers/staging/omapdrm/omap_plane.c +++ b/drivers/staging/omapdrm/omap_plane.c @@ -551,8 +551,8 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, return plane; fail: - if (plane) { + if (plane) omap_plane_destroy(plane); - } + return NULL; }