drm/gma500: Code cleanup - removal of centralized exiting of function
authorArthur Borsboom <arthurborsboom@gmail.com>
Sat, 15 Mar 2014 21:12:16 +0000 (22:12 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 17 Mar 2014 19:14:06 +0000 (20:14 +0100)
Removed centralized exiting of function (goto statement), since it was
the only used in one single location with only a return statement.

Signed-off-by: Arthur Borsboom <arthurborsboom@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/psb_drv.c

index 2e8605e76a7c1129baddf80aa4a5cfde3c04c613..37d651298525725e6ee55f9160f8d60f6e257e34 100644 (file)
@@ -113,12 +113,9 @@ static int psb_do_init(struct drm_device *dev)
 
        uint32_t stolen_gtt;
 
-       int ret = -ENOMEM;
-
        if (pg->mmu_gatt_start & 0x0FFFFFFF) {
                dev_err(dev->dev, "Gatt must be 256M aligned. This is a bug.\n");
-               ret = -EINVAL;
-               goto out_err;
+               return -EINVAL;
        }
 
 
@@ -149,8 +146,6 @@ static int psb_do_init(struct drm_device *dev)
        PSB_RSGX32(PSB_CR_BIF_TWOD_REQ_BASE); /* Post */
 
        return 0;
-out_err:
-       return ret;
 }
 
 static int psb_driver_unload(struct drm_device *dev)