Messages in this thread | | | From | Max Filippov <> | Date | Mon, 23 May 2022 00:35:41 -0700 | Subject | Re: [PATCH -next] xtensa: Return true/false (not 1/0) from bool function |
| |
On Wed, May 18, 2022 at 4:10 PM Yang Li <yang.lee@linux.alibaba.com> wrote: > > 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> > --- > arch/xtensa/kernel/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks! Applied to my xtensa tree.
-- Max
| |