]> www.infradead.org Git - mtd-utils.git/commit
ubiformat: fix the subpage size hint on the error path
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 8 Sep 2014 12:05:54 +0000 (15:05 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 16 Sep 2014 15:11:50 +0000 (18:11 +0300)
commit15685fe39f1665d53d8b316c8f837f20f8700d4b
tree71ca17ccea7ade0cc1b9a441b7d4a0e8da768e5c
parent51b71fb46a069fa137c7a02769d60561e178ba15
ubiformat: fix the subpage size hint on the error path

David Binderman <dcb314@hotmail.com> reports that the following piece of looks
wrong:

if (!args.subpage_size != mtd->min_io_size)
    normsg("may be sub-page size is incorrect?");

I totally agree with him and I believe that we actually meant to have no
negation in fron to f 'args.subpage_size', so instead, the code should look
like this:

if (args.subpage_size != mtd->min_io_size)
    normsg("may be sub-page size is incorrect?");

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
ubi-utils/ubiformat.c