summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile.postlink
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-08-06 09:19:33 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2022-08-12 07:10:10 +0200
commitaafcac81b0e3f0d7383a78c6249e90e166ac8e6d (patch)
tree81d34240c716b9574f1c54a67f880faea300106f /arch/powerpc/Makefile.postlink
parentLoongArch: Adjust arch/loongarch/Kconfig (diff)
downloadlinux-aafcac81b0e3f0d7383a78c6249e90e166ac8e6d.tar.xz
linux-aafcac81b0e3f0d7383a78c6249e90e166ac8e6d.zip
LoongArch: Fix unsigned comparison with less than zero
The return value from the call to get_timer_irq() is int, which can be a negative error code. However, the return value is being assigned to an unsigned int variable 'irq', so making 'irq' an int. Eliminate the following coccicheck warning: ./arch/loongarch/kernel/time.c:146:5-8: WARNING: Unsigned expression compared with zero: irq < 0 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/powerpc/Makefile.postlink')
0 files changed, 0 insertions, 0 deletions