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
This commit is contained in:
Oleksiy Avramchenko 2015-05-04 17:07:01 +02:00 committed by Johan Redestig
parent 9377399150
commit 093dd317ec
1 changed files with 0 additions and 4 deletions

View File

@ -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;