My static checker says that "err" can be uninitialized if
"vol->reserved_pebs" is <= 0. I don't think that can happen but
returning a literal is cleaner anyway.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
if (!no_vtbl)
self_check_volumes(ubi);
if (!no_vtbl)
self_check_volumes(ubi);
out_err:
ubi_err(ubi, "cannot remove volume %d, error %d", vol_id, err);
out_err:
ubi_err(ubi, "cannot remove volume %d, error %d", vol_id, err);