mtd: dataflash: Get rid of loop counter in jedec_probe()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 21 Apr 2017 16:30:24 +0000 (09:30 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 11 May 2017 17:04:39 +0000 (10:04 -0700)
commita296a1bc3eb54382d2a61d47529e71c9d3bc615e
tree46ca5945b03282affb5911cce1a14526060f458b
parent02f62864f6cebbbbff6bb611fddf78c1d05a9747
mtd: dataflash: Get rid of loop counter in jedec_probe()

"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 <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mtd_dataflash.c