diff options
author | Fabio Estevam <festevam@gmail.com> | 2016-08-21 19:32:15 -0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-09-15 15:29:31 +0200 |
commit | dc227890d2d877877e2579d1f16a5286eae6d60e (patch) | |
tree | ae8c0c477ea01c60daff362bad38d3b2de2a1122 /drivers/gpu/drm/etnaviv/etnaviv_gpu.c | |
parent | db60eda32fa74120efa4ebc2f86d306a7a87fcd7 (diff) | |
download | op-kernel-dev-dc227890d2d877877e2579d1f16a5286eae6d60e.zip op-kernel-dev-dc227890d2d877877e2579d1f16a5286eae6d60e.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gpu.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index e430870..b851809 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/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 etnaviv_gpu *gpu; - int err = 0; + int err; gpu = devm_kzalloc(dev, sizeof(*gpu), GFP_KERNEL); if (!gpu) |