commit | c704005d886cf0bc9bc3974eb009b22fe0da32c7 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.cz> | Tue Apr 19 18:00:01 2011 +0200 |
committer | David Sterba <dsterba@suse.cz> | Mon May 02 13:57:20 2011 +0200 |
tree | b9effb8d686af95ca92782697b75a70bf34a3964 | |
parent | 4891aca2dac612a2f21a3278d9906ade13b55788 [diff] |
btrfs: unify checking of IS_ERR and null use IS_ERR_OR_NULL when possible, done by this coccinelle script: @ match @ identifier id; @@ ( - BUG_ON(IS_ERR(id) || !id); + BUG_ON(IS_ERR_OR_NULL(id)); | - IS_ERR(id) || !id + IS_ERR_OR_NULL(id) | - !id || IS_ERR(id) + IS_ERR_OR_NULL(id) ) Signed-off-by: David Sterba <dsterba@suse.cz>