[PATCH -next] interconnect: Remove set but not used variable 'p'
From: YueHaibing
Date: Thu Sep 06 2018 - 21:40:33 EST
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/interconnect/core.c: In function 'icc_set':
drivers/interconnect/core.c:350:23: warning:
variable 'p' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
drivers/interconnect/core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 2740f1a..8b1ba1a 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -347,7 +347,6 @@ struct icc_path *of_icc_get(struct device *dev, const char *name)
int icc_set(struct icc_path *path, u32 avg_bw, u32 peak_bw)
{
struct icc_node *node;
- struct icc_provider *p;
size_t i;
int ret;
@@ -358,7 +357,6 @@ int icc_set(struct icc_path *path, u32 avg_bw, u32 peak_bw)
for (i = 0; i < path->num_nodes; i++) {
node = path->reqs[i].node;
- p = node->provider;
/* update the consumer request for this path */
path->reqs[i].avg_bw = avg_bw;