Andrew Goodbody a58089ad2e fs: semihosting: Use correct variable for error check
After calling a function that can return an error, the test to detect
that error should use the return value not a different variable. Fix it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Fixes: f676b45151c3 ("fs: Add semihosting filesystem")
2025-10-17 18:07:20 -06:00
..
2025-07-24 13:30:20 -06:00
2025-05-13 11:30:09 -06:00
2025-10-10 14:27:59 -06:00
2024-10-11 11:44:48 -06:00
2024-07-15 12:12:17 -06:00
2025-04-02 20:00:59 -06:00
2025-04-02 20:00:59 -06:00