aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorYang Li <[email protected]>2022-08-06 15:19:33 +0800
committerHuacai Chen <[email protected]>2022-08-12 13:10:10 +0800
commitaafcac81b0e3f0d7383a78c6249e90e166ac8e6d (patch)
tree81d34240c716b9574f1c54a67f880faea300106f /drivers/fpga/fpga-bridge.c
parentf30d1f495cc117c0264d71a4d636ee72dd8acb16 (diff)
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 <[email protected]> Signed-off-by: Yang Li <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions