staging: erofs: fix return type of erofs_workgroup_get
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 26 Dec 2018 03:34:11 +0000 (11:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2019 07:56:07 +0000 (08:56 +0100)
commitc706d4b744fb43477eeee2bb898968756e0232ad
tree1b6296fa4106705a63e7da70f8c821816fb64b86
parent2f6fa4ca37c57e56ea535c947f60060c69a3dc03
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>
drivers/staging/erofs/internal.h