git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4891aca
)
btrfs: unify checking of IS_ERR and null
author
David Sterba
<dsterba@suse.cz>
Tue, 19 Apr 2011 16:00:01 +0000
(18:00 +0200)
committer
David Sterba
<dsterba@suse.cz>
Mon, 2 May 2011 11:57:20 +0000
(13:57 +0200)
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>
fs/btrfs/acl.c
patch
|
blob
|
history
fs/btrfs/extent_io.c
patch
|
blob
|
history
fs/btrfs/file.c
patch
|
blob
|
history
fs/btrfs/inode.c
patch
|
blob
|
history
fs/btrfs/relocation.c
patch
|
blob
|
history
fs/btrfs/tree-log.c
patch
|
blob
|
history
diff --cc
fs/btrfs/acl.c
Simple merge
diff --cc
fs/btrfs/extent_io.c
Simple merge
diff --cc
fs/btrfs/file.c
Simple merge
diff --cc
fs/btrfs/inode.c
Simple merge
diff --cc
fs/btrfs/relocation.c
Simple merge
diff --cc
fs/btrfs/tree-log.c
Simple merge