staging: erofs: fix return type of erofs_workgroup_get

There exists a return type misuse (`int'->`bool') since all
users assume it fails if only return value != 0, let's fix
the return type to `int' instead of confusing `bool'.

No logic changes.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Gao Xiang 2018-12-26 11:34:11 +08:00 committed by Greg Kroah-Hartman
parent 2f6fa4ca37
commit c706d4b744
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp)
}
#endif
static inline bool erofs_workgroup_get(struct erofs_workgroup *grp, int *ocnt)
static inline int erofs_workgroup_get(struct erofs_workgroup *grp, int *ocnt)
{
int o;