Re: [PATCH] nvmem: core: fix error path in nvmem_add_cells()

From: Srinivas Kandagatla
Date: Thu Feb 18 2016 - 04:07:58 EST




On 18/02/16 05:35, Rasmus Villemoes wrote:
On Wed, Feb 17 2016, Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx> wrote:

err:
- while (--i)
+ while (i--)

This is what you need here to fix it correctly.

while (--i >= 0)


Sigh. http://thread.gmane.org/gmane.linux.kernel.mm/146058/focus=2149595
Yes, You are correct! :-)
I will queue this patch.

--srini



TL;DR: They're equivalent.

Rasmus