]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc46e57b5bac17f3a2dfc9c77a01c33aa87a8f6e
tree1b6296fa4106705a63e7da70f8c821816fb64b86
parent6ec5e3dd083f7bde8df9b61a2625082bd6eea75e
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