btrfs: remove unused condition check in btrfs_page_mkwrite()
authorYunfeng Ye <yeyunfeng@huawei.com>
Tue, 3 Dec 2019 08:59:25 +0000 (16:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:51 +0000 (16:40 +0100)
commit76de60ed044f26f0ab62c2f752cb3d0eade2cde0
treea8a06b31b26458eabe0bce38ba5059356db34125
parent36ee0b44ad238c7797e1f7cbefdf75c6cf887101
btrfs: remove unused condition check in btrfs_page_mkwrite()

The condition '!ret2' is always true. commit 717beb96d969 ("Btrfs: fix
regression in btrfs_page_mkwrite() from vm_fault_t conversion") left
behind the check after moving this code out of the goto, so remove the
unused condition check.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c