[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52458809.6050704@nod.at>
Date: Fri, 27 Sep 2013 15:28:41 +0200
From: Richard Weinberger <richard@....at>
To: Richard Genoud <richard.genoud@...il.com>
CC: Artem Bityutskiy <dedekind1@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
linux-mtd <linux-mtd@...ts.infradead.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] UBI: simplify image sequence test
Am 27.09.2013 14:51, schrieb Richard Genoud:
> The test:
> if (!a && b)
> a = b;
> can be symplified in:
> if (!a)
> a = b;
>
> And there's no need to test if ubi->image_seq is not null, because if it is,
> it is set to image_seq.
> So, we just test if image_seq is not null.
>
> Signed-off-by: Richard Genoud <richard.genoud@...il.com>
Acked-by: Richard Weinberger <richard@....at>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists