lkml.org 
[lkml]   [2017]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] devcoredump: remove redundant assignment to iter
Date
From: Colin Ian King <colin.king@canonical.com>

The assignment to pointer iter is redundant as this is also performed
in the following macro for_each_sg, hence it can be removed. Cleans
up clang warning:

./include/linux/devcoredump.h:45:2: warning: Value stored to 'iter'
is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
include/linux/devcoredump.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/include/linux/devcoredump.h b/include/linux/devcoredump.h
index 269521f143ac..a9f3e2480739 100644
--- a/include/linux/devcoredump.h
+++ b/include/linux/devcoredump.h
@@ -42,7 +42,6 @@ static inline void _devcd_free_sgtable(struct scatterlist *table)
struct scatterlist *delete_iter;

/* free pages */
- iter = table;
for_each_sg(table, iter, sg_nents(table), i) {
page = sg_page(iter);
if (page)
--
2.14.1
\
 
 \ /
  Last update: 2017-11-08 21:03    [W:0.032 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site