diff options
| author | 2016-01-05 08:08:35 +1100 | |
|---|---|---|
| committer | 2016-01-05 08:08:35 +1100 | |
| commit | 7eeabbd4b6b69f3f6cb75730f17804b714bd853b (patch) | |
| tree | 9acbd170426728ea53f1d12ebae6c22b100f78de /fs/xfs/libxfs/xfs_bit.c | |
| parent | xfs: debug mode log record crc error injection (diff) | |
| parent | XFS: Use a signed return type for suffix_kstrtoint() (diff) | |
| download | wireguard-linux-7eeabbd4b6b69f3f6cb75730f17804b714bd853b.tar.xz wireguard-linux-7eeabbd4b6b69f3f6cb75730f17804b714bd853b.zip | |
Merge branch 'xfs-misc-fixes-for-4.5' into for-next
Diffstat (limited to 'fs/xfs/libxfs/xfs_bit.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_bit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_bit.c b/fs/xfs/libxfs/xfs_bit.c index 0e8885a59646..0a94cce5ea35 100644 --- a/fs/xfs/libxfs/xfs_bit.c +++ b/fs/xfs/libxfs/xfs_bit.c @@ -32,13 +32,13 @@ int xfs_bitmap_empty(uint *map, uint size) { uint i; - uint ret = 0; for (i = 0; i < size; i++) { - ret |= map[i]; + if (map[i] != 0) + return 0; } - return (ret == 0); + return 1; } /* |
