xtensa: Return true/false (not 1/0) from bool function
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 18 May 2022 23:09:53 +0000 (07:09 +0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 23 May 2022 07:33:05 +0000 (00:33 -0700)
commitdc60001e1a305ad8bba1ddaf09484e0e150aba60
treeb9eb37a119af91e42b31994a7ad34c143bfc86b1
parent5cc5f19f884a75f0bf96b95b4292fcc81effd755
xtensa: Return true/false (not 1/0) from bool function

Return boolean values ("true" or "false") instead of 1 or 0 from bool
function. This fixes the following warnings from coccicheck:

./arch/xtensa/kernel/traps.c:304:10-11: WARNING: return of 0/1 in
function 'check_div0' with return type bool

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Message-Id: <20220518230953.112266-1-yang.lee@linux.alibaba.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/traps.c