]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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)
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

index e049d00c087a0842043969204d01b36d89020f8b..49c5873833151dc56a09dbb670f42e17d907ed21 100644 (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;