From: Richard Genoud Date: Sat, 28 Sep 2013 13:55:14 +0000 (+0200) Subject: UBI: simplify image sequence test X-Git-Tag: v3.13-rc1~109^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b80c409a1368b8dff3c78943101bccb0ea3aa1;p=pandora-kernel.git 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 Signed-off-by: Richard Weinberger Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed