mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
UBI: Clean up return in ubi_remove_volume()
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
This commit is contained in:
parent
960b35d06b
commit
fadb3665ba
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ int ubi_remove_volume(struct ubi_volume_desc *desc, int no_vtbl)
|
|||
if (!no_vtbl)
|
||||
self_check_volumes(ubi);
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
|
||||
out_err:
|
||||
ubi_err(ubi, "cannot remove volume %d, error %d", vol_id, err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue