Btrfs: tests: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Nov 2015 09:10:03 +0000 (12:10 +0300)
committerChris Mason <clm@fb.com>
Wed, 25 Nov 2015 13:19:50 +0000 (05:19 -0800)
commit89b6c8d1e4a178a347b94f339b959f02710e7060
tree77bcfcb9063302849cdb3d5be95718585e52ba1d
parent9dcbeed4d7e11e1dcf5e55475de3754f0855d1c2
Btrfs: tests: checking for NULL instead of IS_ERR()

btrfs_alloc_dummy_root() return an error pointer on failure, it never
returns NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/tests/free-space-tests.c