]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: gpt: drop pointless unsigned >= 0 check
authorJamie Magee <jamie.magee@gmail.com>
Mon, 4 May 2026 16:00:55 +0000 (09:00 -0700)
committerJamie Magee <jamie.magee@gmail.com>
Mon, 4 May 2026 16:00:55 +0000 (09:00 -0700)
commita6ef2d43462485f494bd8e93fdcada41a0e4033f
tree989bf8f2fb7ae648a8d61372b92a2848f1cc5d89
parent8dce82b3b7ab5e29133bd0bb41ba2f5d04235648
libfdisk: gpt: drop pointless unsigned >= 0 check

GPT_ATTRBIT_REQ is 0 and val is uint16_t, so 'val >= GPT_ATTRBIT_REQ' is always true. CodeQL flagged it; keep only the upper bound.
libfdisk/src/gpt.c