staging/omapdrm: Fix spacing coding style in omap_drv.h
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Wed, 14 Nov 2012 10:31:09 +0000 (19:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:31:03 +0000 (16:31 -0800)
The following warnings fixed.
- 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_drv.h

index 8f41098fd84300ee8b9bf53ffd13e8c7763b4267..1d4aea53b75da20e44be90b4a32e589a4a067785 100644 (file)
@@ -218,17 +218,17 @@ static inline int objects_lookup(struct drm_device *dev,
 
        for (i = 0; i < n; i++) {
                bos[i] = drm_gem_object_lookup(dev, filp, handles[i]);
-               if (!bos[i]) {
+               if (!bos[i])
                        goto fail;
-               }
+
        }
 
        return 0;
 
 fail:
-       while (--i > 0) {
+       while (--i > 0)
                drm_gem_object_unreference_unlocked(bos[i]);
-       }
+
        return -ENOENT;
 }