From: Fengguang Wu Subject: [PATCH] zram: fix coccinelle warnings TO: Stephen Rothwell CC: Minchan Kim CC: linux-kernel@vger.kernel.org drivers/block/zram/zcomp.c:237:8-9: WARNING: return of 0/1 in function 'zcomp_strm_single_set_max_streams' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: coccinelle/misc/boolreturn.cocci CC: Minchan Kim CC: Stephen Rothwell Signed-off-by: Fengguang Wu --- cocci-output-25581-4ec682-zcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/block/zram/zcomp.c +++ b/drivers/block/zram/zcomp.c @@ -234,7 +234,7 @@ static void zcomp_strm_single_release(st static bool zcomp_strm_single_set_max_streams(struct zcomp *comp, int num_strm) { /* zcomp_strm_single support only max_comp_streams == 1 */ - return 0; + return false; } static void zcomp_strm_single_destroy(struct zcomp *comp)