[PATCH] UBI: simplify image sequence test

Richard Weinberger richard at nod.at
Fri Sep 27 09:28:41 EDT 2013


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 at gmail.com>

Acked-by: Richard Weinberger <richard at nod.at>




More information about the linux-mtd mailing list