]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: eeprom_field: Drop unnecessary comparison
authorMarek Behún <kabel@kernel.org>
Tue, 21 May 2024 07:13:28 +0000 (09:13 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2024 16:47:59 +0000 (10:47 -0600)
commit951dc4e077b2ba5eadaba3beb9b61f131ffa6fdc
tree3c78bbceea393b3b5a119f33aadb5a2fff012ba6
parent96dfa5869da586eb1c8d84c22164a2bf399968a1
common: eeprom_field: Drop unnecessary comparison

The byte variable is of type unsigned char, it is never less than zero.
The error case is handled by *endptr, so drop the comparison altogether.

Signed-off-by: Marek Behún <kabel@kernel.org>
common/eeprom/eeprom_field.c