diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-06 11:19:11 +0100 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2025-08-06 16:52:27 +0200 |
commit | 6c49b082f05985c59c2d23ac63c6626bd6aa5fc7 (patch) | |
tree | 65c13bba428bcb4ad1ef9ca2665fc0a9fe6ecc74 /scripts/dtc/pylibfdt/setup.py | |
parent | 393ace55be5cae4d4f543784d35f3b42655fd9c2 (diff) |
net: rswitch: Fix error detection
In rswitch_probe the error detection after the call to devm_clk_get is
very wrong. It checks the value of ret which is uninitialised at that
point. Instead it should be using the macros for including errors into
pointers.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'scripts/dtc/pylibfdt/setup.py')
0 files changed, 0 insertions, 0 deletions