drm/etnaviv: remove unneeded variable initialization
authorFabio Estevam <festevam@gmail.com>
Sun, 21 Aug 2016 22:32:15 +0000 (19:32 -0300)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:31 +0000 (15:29 +0200)
There is no need to initialize variable 'err' with 0 because it will
be properly assigned later on.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c

index e430870..b851809 100644 (file)
@@ -1652,7 +1652,7 @@ static int etnaviv_gpu_platform_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
        struct etnaviv_gpu *gpu;
-       int err = 0;
+       int err;
 
        gpu = devm_kzalloc(dev, sizeof(*gpu), GFP_KERNEL);
        if (!gpu)