* [PATCH] devcoredump: remove redundant assignment to iter
@ 2017-11-07 10:42 Colin King
2017-11-08 1:06 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2017-11-07 10:42 UTC (permalink / raw)
To: Johannes Berg; +Cc: kernel-janitors, linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] devcoredump: remove redundant assignment to iter
2017-11-07 10:42 [PATCH] devcoredump: remove redundant assignment to iter Colin King
@ 2017-11-08 1:06 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2017-11-08 1:06 UTC (permalink / raw)
To: Colin King; +Cc: kernel-janitors, linux-kernel
On Tue, 2017-11-07 at 10:42 +0000, Colin King wrote:
> 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
>
I think you'll have to Cc Greg KH to get this applied, unless somebody
picks it up from janitors.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-08 1:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 10:42 [PATCH] devcoredump: remove redundant assignment to iter Colin King
2017-11-08 1:06 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).