btrfs: simplify IS_ERR/PTR_ERR checks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jul 2018 22:04:46 +0000 (23:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:13:02 +0000 (13:13 +0200)
commit8d9e220ca0844bf75b98cb5b8e2c25d203c0d0f6
treecd43d2412db0f5ee0b34642b11711229bb12f068
parent2e19f1f9d31b3515356710b8bdfb655f47a98448
btrfs: simplify IS_ERR/PTR_ERR checks

IS_ERR(p) && PTR_ERR(p) == n is a weird way to spell p == ERR_PTR(n).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c
fs/btrfs/tree-log.c