diff options
| author | Andrew Goodbody <[email protected]> | 2025-10-21 17:08:25 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-04 09:38:16 -0600 |
| commit | e24a7b3b172379b50a7fa96ab4634de109c3e432 (patch) | |
| tree | 7838b8319bdec64a1caa19175a7c00be9757ecda /include/linux/string.h | |
| parent | a58089ad2e41e88f81360f0e99bfd0715aceb556 (diff) | |
mmc: hi6220_dw_mmc: Fix error detection for clk_get_rate
clk_get_rate() returns a ulong and that return value is assigned to a
member of a struct that is an unsigned int. So testing this value to <=
0 will only detect a return of 0. Also the code in the if block assumes
ret holds the return value when it does not. So update the test to one
that will work as intended and update the if block to actually refer to
the return value.
Signed-off-by: Andrew Goodbody <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
