• Artem Bityutskiy's avatar
    UBIFS: remove an unneeded check · 69f8a75a
    Artem Bityutskiy authored
    In 'ubifs_recover_size()' we have an "if (!e->inode && c->ro_mount)" statement.
    But if 'c->ro_mount' is true, then '!e->inode' must always be true as well. So
    we can remove the unnecessary '!e->inode' test and put an
    'ubifs_assert(!e->inode)' instead.
    
    This patch also removes an extra trailing white-space in a debugging print,
    as well as adds few empty lines to 'ubifs_recover_size()' to make it a bit more
    readable.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    69f8a75a
recovery.c 40.2 KB