Эх сурвалжийг харах

drm/etnaviv: remove unneeded variable initialization

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>
Fabio Estevam 9 жил өмнө
parent
commit
dc227890d2

+ 1 - 1
drivers/gpu/drm/etnaviv/etnaviv_gpu.c

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