projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: Use WARN_ON()'s return value in place of WARN_ON(1)
[deliverable/linux.git]
/
fs
/
btrfs
/
file-item.c
diff --git
a/fs/btrfs/file-item.c
b/fs/btrfs/file-item.c
index ae8a5139e0eea5ec606068f30f3b3022a5933d54..6f384886028386f2f069756ef18e757b10ba9dbf 100644
(file)
--- a/
fs/btrfs/file-item.c
+++ b/
fs/btrfs/file-item.c
@@
-849,10
+849,8
@@
insert:
path->leave_spinning = 0;
if (ret < 0)
goto fail_unlock;
- if (ret != 0) {
- WARN_ON(1);
+ if (WARN_ON(ret != 0))
goto fail_unlock;
- }
leaf = path->nodes[0];
csum:
item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item);
This page took
0.023845 seconds
and
5
git commands to generate.