projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232f23e
)
drm/panel: remove set but not used variable 'config'
author
YueHaibing
<yuehaibing@huawei.com>
Fri, 17 Apr 2020 10:14:01 +0000
(18:14 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sat, 25 Apr 2020 14:56:54 +0000
(16:56 +0200)
drivers/gpu/drm/panel/panel-truly-nt35597.c:493:31: warning: variable ‘config’ set but not used [-Wunused-but-set-variable]
const struct nt35597_config *config;
^~~~~~
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200417101401.19388-1-yuehaibing@huawei.com
drivers/gpu/drm/panel/panel-truly-nt35597.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-truly-nt35597.c
b/drivers/gpu/drm/panel/panel-truly-nt35597.c
index 012ca62bf30e6939966a465f2bad9142b3adbc7d..f0ad6081570f570c548cbcea7a5290c91b1cd052 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-truly-nt35597.c
+++ b/
drivers/gpu/drm/panel/panel-truly-nt35597.c
@@
-490,9
+490,7
@@
static int truly_nt35597_panel_add(struct truly_nt35597 *ctx)
{
struct device *dev = ctx->dev;
int ret, i;
- const struct nt35597_config *config;
- config = ctx->config;
for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++)
ctx->supplies[i].supply = regulator_names[i];