Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7604635yba; Thu, 2 May 2019 12:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYMlWsSC8Wl61BKIQHRTV3E6xoGhe5w3h/fkFYJauzLrslwSuz9VF25zLa+Z1q5QgkPJv3 X-Received: by 2002:a63:e110:: with SMTP id z16mr5879581pgh.165.1556826642502; Thu, 02 May 2019 12:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556826642; cv=none; d=google.com; s=arc-20160816; b=c1uJFSXg5m84nER3ZHQhMeG9Yfyr1mgwD/oKQk1kKeq41oY+N41GqvQIDuJhRScRHx 4H/2sQoxasXZsHPayvUMCVI4CWgxyqr45LP5yTvghwrtVAQ8sI1zRxMNEtOJztDuGclI IwRVOt7Twad8zAWKBh6FhH6bE76I4mp8Qd4R93QxIhoXe7K+MSqObZIuVOG0KJ3cNsTO U6gdxeZdDqashg+XklKnOF/DKdjNRpd3vZVgMHGZMtygFgzuQK+nwSEXKE6qJxYdzK53 1GDCHaW96+Xk+nHRnJKHVbSrAbPl2zgvMdjdBn9wUnP9scN1EwqjumqiO2MIWZwaLCly kTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=XOC1rIhfoVaGzkHYjAyuY77y6zpjqhsvm9ulcIzd4d0=; b=JWu8O/H+C8r3L2Y+b2Rmy8P3s7xl7FLtqJDG3fO/uRPI95ARjCTX9trX69TPZ0viUZ aPKp6/IDBhsIvKRehlSQqeEBSmvqJmHwcs9tGNS215tCHnzPpxBH1e1KWzkkvv/kAPKw abMuSO4QqJfZV1lhFMAqyAC+O2uJLqn2u5ZniymnjFiU8FWNdZ2w0pxw7ghqNlxqg9Nm 61JzcOAygnOg+PrHU5zU5EfpnAfMkLSHW0Fr3MDP7Xye2kOhjOGNP38QBw3xzauQKUZ8 +E8tH7ab7M66CRKYSxbSfQ4su9A10muRp+xrXSQJxMTmtdmCCJDbqfiYa2+jgBO94PPJ lfkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si79394pla.437.2019.05.02.12.50.26; Thu, 02 May 2019 12:50:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbfEBTsZ (ORCPT + 99 others); Thu, 2 May 2019 15:48:25 -0400 Received: from mga18.intel.com ([134.134.136.126]:59997 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726209AbfEBTsZ (ORCPT ); Thu, 2 May 2019 15:48:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 May 2019 12:48:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,422,1549958400"; d="scan'208";a="140776176" Received: from kheitke-ubuntu.lm.intel.com ([10.232.116.89]) by orsmga006.jf.intel.com with ESMTP; 02 May 2019 12:48:24 -0700 From: Kenneth Heitke To: johannes@sipsolutions.net Cc: linux-kernel@vger.kernel.org, Kenneth Heitke Subject: [PATCH] devcoredump: remove unnecessary initialization of iterator 'iter' Date: Thu, 2 May 2019 13:48:46 -0600 Message-Id: <20190502194846.19700-1-kenneth.heitke@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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