From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752561AbdI2P16 (ORCPT ); Fri, 29 Sep 2017 11:27:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308AbdI2P14 (ORCPT ); Fri, 29 Sep 2017 11:27:56 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 21878C057F91 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dledford@redhat.com Message-ID: <1506698874.2919.21.camel@redhat.com> Subject: Re: [PATCH][rdma-next] RDMA/hns: remove redundant assignment to variable j From: Doug Ledford To: Colin King , Lijun Ou , Wei Hu , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 29 Sep 2017 11:27:54 -0400 In-Reply-To: <20170929135227.8343-1-colin.king@canonical.com> References: <20170929135227.8343-1-colin.king@canonical.com> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 29 Sep 2017 15:27:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2017-09-29 at 14:52 +0100, Colin King wrote: > From: Colin Ian King > > Variable j is being assigned to loop_j and then later being > assigned to a new value in for loops. The first initialization > is therefore redundant and can be removed. > > Cleans up clang warning: > warning: Value stored to 'j' is never read > > Signed-off-by: Colin Ian King Thanks, applied. -- Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD