lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 26 Dec 2018 11:34:11 +0800 From: Gao Xiang <gaoxiang25@...wei.com> To: Chao Yu <yuchao0@...wei.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, <devel@...verdev.osuosl.org> CC: LKML <linux-kernel@...r.kernel.org>, <linux-erofs@...ts.ozlabs.org>, "Chao Yu" <chao@...nel.org>, Miao Xie <miaoxie@...wei.com>, <weidu.du@...wei.com>, Fang Wei <fangwei1@...wei.com>, Gao Xiang <gaoxiang25@...wei.com> Subject: [PATCH] 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@...wei.com> --- drivers/staging/erofs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/erofs/internal.h b/drivers/staging/erofs/internal.h index e049d00c087a..49c587383315 100644 --- a/drivers/staging/erofs/internal.h +++ b/drivers/staging/erofs/internal.h @@ -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; -- 2.14.4
Powered by blists - more mailing lists