Commit 4a1fe86
committed
Fix RTM disable payload power error check
Commit 331bb6f replaced the
rtm_quiesce() function with rtm_disable_payload_power(), but the later
returns the mmc_err enum type, so it should be compared with the enum
values.
MMC_OK is the first value defined in the mmc_err enum type, so it was
represented numerically as 0, and would evaluate as false in the if
statement.1 parent 29f782a commit 4a1fe86
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
0 commit comments