From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942781AbcJSOij (ORCPT ); Wed, 19 Oct 2016 10:38:39 -0400 Received: from mga01.intel.com ([192.55.52.88]:29150 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942770AbcJSOig (ORCPT ); Wed, 19 Oct 2016 10:38:36 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,514,1473145200"; d="scan'208";a="891658846" Date: Wed, 19 Oct 2016 20:17:31 +0530 From: Vinod Koul To: Colin King Cc: Dan Williams , Dave Jiang , Lars-Peter Clausen , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: ioatdma: loop for number elements in array chanerr_str Message-ID: <20161019144730.GP2467@localhost> References: <20161016122547.11478-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161016122547.11478-1-colin.king@canonical.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 16, 2016 at 01:25:47PM +0100, Colin King wrote: > From: Colin Ian King > > Just iterate over the number of elements in array chanerr_str rather > than for all 32 bits. This removes the need for a NULL chanerr_str[i] > check which could possibly overrun if the upper bits (28..31) of > chanerr are set and 27th bit in chanerr is zero. This simplifies the > code by removing an if statement and a break. Applied, thanks -- ~Vinod