Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 093dd317 authored by Oleksiy Avramchenko's avatar Oleksiy Avramchenko Committed by Johan Redestig
Browse files

fs_mgr: remove some dead code

Using logical op on unitialized memory is a bad thing. Good thing
is that this bug is dead because the structure is completely
cleared later via create_verity_device() -> verity_ioctl_init().

Change-Id: Idf5515a888bc6216eda0e23885a789f9b0320bac
parent 93773991
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -934,10 +934,6 @@ int fs_mgr_setup_verity(struct fstab_rec *fstab) {
    struct dm_ioctl *io = (struct dm_ioctl *) buffer;
    char *mount_point = basename(fstab->mount_point);

    // set the dm_ioctl flags
    io->flags |= 1;
    io->target_count = 1;

    // get verity filesystem size
    if (get_fs_size(fstab->fs_type, fstab->blk_device, &device_size) < 0) {
        return retval;