staging/omapdrm: Fix spacing coding style in omap_connector.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Wed, 14 Nov 2012 10:28:54 +0000 (19:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:31:02 +0000 (16:31 -0800)
The following warnings fixed.
- WARNING: braces {} are not necessary for any arm of this statement
- WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_connector.c

index 38be186c249a8ed8e3fbed927ec6ed17633ea2f1..91edb3f9697292961883ca5876f4ab520b27ed6a 100644 (file)
@@ -146,11 +146,10 @@ enum drm_connector_status omap_connector_detect(
        enum drm_connector_status ret;
 
        if (dssdrv->detect) {
-               if (dssdrv->detect(dssdev)) {
+               if (dssdrv->detect(dssdev))
                        ret = connector_status_connected;
-               } else {
+               else
                        ret = connector_status_disconnected;
-               }
        } else {
                ret = connector_status_unknown;
        }
@@ -383,9 +382,8 @@ struct drm_connector *omap_connector_init(struct drm_device *dev,
        return connector;
 
 fail:
-       if (connector) {
+       if (connector)
                omap_connector_destroy(connector);
-       }
 
        return NULL;
 }