* [PATCH] devcoredump: remove unnecessary initialization of iterator 'iter'
@ 2019-05-02 19:48 Kenneth Heitke
0 siblings, 0 replies; only message in thread
From: Kenneth Heitke @ 2019-05-02 19:48 UTC (permalink / raw)
To: johannes; +Cc: linux-kernel, Kenneth Heitke
The iterator 'iter' will be set by the call to for_each_sg and therefore
does not need to be initialized.
Signed-off-by: Kenneth Heitke <kenneth.heitke@intel.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.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-02 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02 19:48 [PATCH] devcoredump: remove unnecessary initialization of iterator 'iter' Kenneth Heitke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®