diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-10-03 15:12:42 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-10-05 21:05:15 -0700 |
commit | 120c2cba1d76494a68e36a11eb630cb335ed1494 (patch) | |
tree | 9a2bcd41cb8a5f18a3513e507df702fb2d52efa6 /fs/f2fs | |
parent | 52656e6cf7be6955e3ea01dbb835b43119278a12 (diff) | |
download | linux-stable-120c2cba1d76494a68e36a11eb630cb335ed1494.tar.gz linux-stable-120c2cba1d76494a68e36a11eb630cb335ed1494.tar.bz2 linux-stable-120c2cba1d76494a68e36a11eb630cb335ed1494.zip |
f2fs: remove unused return value
Don't return any value without any usage.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/node.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index bd826d953c7c..8d5e6e0dd840 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -130,7 +130,7 @@ struct free_nid { int state; /* in use or not: NID_NEW or NID_ALLOC */ }; -static inline int next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) +static inline void next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *fnid; @@ -138,12 +138,11 @@ static inline int next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) spin_lock(&nm_i->free_nid_list_lock); if (nm_i->fcnt <= 0) { spin_unlock(&nm_i->free_nid_list_lock); - return -1; + return; } fnid = list_entry(nm_i->free_nid_list.next, struct free_nid, list); *nid = fnid->nid; spin_unlock(&nm_i->free_nid_list_lock); - return 0; } /* |