]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fs: exfat: Remove pointless variable uoffset
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 8 Jul 2025 11:16:42 +0000 (12:16 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jul 2025 15:55:48 +0000 (09:55 -0600)
commitdd4693136b33f2b175e8cedecf9d76e391acabdf
treee099d0adb0572bbe1b4dae04d60961f0c27a8d21
parent505e2734756018af953d2e5bd1cd6ff7b66b0cdb
fs: exfat: Remove pointless variable uoffset

In exfat_generic_pread and exfat_generic_pwrite offset is passed in as a
off_t type which is defined as 'unsigned long long' so there is no need
to create the variable uoffset as a uint64_t as this is just a direct
copy of offset. Also remove the impossible test of 'offset < 0' as this
is always false due to offset being unsigned.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
fs/exfat/io.c