]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27e9bb010fc44c8dac8fbf591dbf8de7d864abfe
tree77bcfcb9063302849cdb3d5be95718585e52ba1d
parent5060901740264fddf4f59cdaaed799d1ef112c8d
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