projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db60eda
)
drm/etnaviv: remove unneeded variable initialization
author
Fabio Estevam
<festevam@gmail.com>
Sun, 21 Aug 2016 22:32:15 +0000
(19:32 -0300)
committer
Lucas 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index
e430870
..
b851809
100644
(file)
--- 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)