From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965354AbdDSPnL (ORCPT ); Wed, 19 Apr 2017 11:43:11 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35427 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937649AbdDSPnI (ORCPT ); Wed, 19 Apr 2017 11:43:08 -0400 Subject: Re: [PATCH v3 4/6] mtd: dataflash: Get rid of loop counter in jedec_probe() To: Andrey Smirnov , linux-mtd@lists.infradead.org References: <20170419152305.17226-1-andrew.smirnov@gmail.com> <20170419152305.17226-4-andrew.smirnov@gmail.com> Cc: cphealy@gmail.com, David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger , Cyrille Pitchen , linux-kernel@vger.kernel.org From: Marek Vasut Message-ID: <490d8724-7cfe-601d-b5d4-95cc34c7a3c4@gmail.com> Date: Wed, 19 Apr 2017 17:34:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170419152305.17226-4-andrew.smirnov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/19/2017 05:23 PM, Andrey Smirnov wrote: > "For" loop in jedec_probe can be simplified to not need counter > 'i'. Convert the code and get rid of the variable. > > Cc: cphealy@gmail.com > Cc: David Woodhouse > Cc: Brian Norris > Cc: Boris Brezillon > Cc: Marek Vasut > Cc: Richard Weinberger > Cc: Cyrille Pitchen > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Andrey Smirnov > --- Reviewed-by: Marek Vasut -- Best regards, Marek Vasut