Messages in this thread | | | Date | Fri, 27 Sep 2013 15:28:41 +0200 | From | Richard Weinberger <> | 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@gmail.com>
Acked-by: Richard Weinberger <richard@nod.at>
| |