UBI: simplify image sequence test
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@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2bae366 commit dee73c54b050a772e9e5814c9da9905fc9b8e4fa
@Richard Genoud Richard Genoud authored on 28 Sep 2013
Sascha Hauer committed on 7 Jan 2014
Showing 1 changed file
View
drivers/mtd/ubi/attach.c