mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:20:52 +07:00
fscrypt: remove redundant bi_status check
submit_bio_wait() already returns bi_status translated to an errno. So the additional check of bi_status is redundant and can be removed. Link: https://lore.kernel.org/r/20191209204509.228942-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
parent
ede7a09fc8
commit
f4a0b08b39
@ -77,8 +77,6 @@ int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
|
|||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
err = submit_bio_wait(bio);
|
err = submit_bio_wait(bio);
|
||||||
if (err == 0 && bio->bi_status)
|
|
||||||
err = -EIO;
|
|
||||||
bio_put(bio);
|
bio_put(bio);
|
||||||
if (err)
|
if (err)
|
||||||
goto errout;
|
goto errout;
|
||||||
|
Loading…
Reference in New Issue
Block a user