spi: npcm-fiu: Remove repeated test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 16:29:07 +0000 (17:29 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 16:33:00 +0000 (10:33 -0600)
commit9a6411daed49300a4182a0494d5a5a3b9f446429
treea1f1392a2f8de565f2f454e1ab6bb2392953cd33
parentc01280b62c44e2a6be57440939f1912e60a7d5ec
spi: npcm-fiu: Remove repeated test

In npcm_fiu_uma_operation to enter a code block nbytes must be non-zero.
So testing for nbytes inside the code block is redundant and can be
removed.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/spi/npcm_fiu_spi.c