]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: socfpga: agilex5: Coverity issue cleanup in jtag_usercode check
authorTingting Meng <tingting.meng@altera.com>
Tue, 29 Apr 2025 09:55:42 +0000 (02:55 -0700)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 30 Jul 2025 09:45:30 +0000 (17:45 +0800)
commit8eb3812c589ddbf30dc7ed3b2377da6af5b904fc
tree5ce8759badc5f06f65e7ed972e338c7e453e8891
parent6e1cc5d861d388f5699859bac481822029881738
arm: socfpga: agilex5: Coverity issue cleanup in jtag_usercode check

A redundant comparison (jtag_usercode >= 0) was removed from the
condition checking jtag_usercode. Since jtag_usercode is an unsigned
integer, the check for non-negativity was always true. The code was
simplified to resolve the Coverity warning.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/board.c