Commit 0828aa7
drivers: sensor: uint8_t var cannot be greater than 0xff
SENSOR_XBR818_CLOCKRATE / val->val1 is getting assigned
to uint8_t variable which is causing the logically
dead issue, this commit is a fix for it.
(cherry picked from commit 177e7d2)
Original-Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
GitOrigin-RevId: 177e7d2
Cr-Build-Id: 8710912179129064817
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8710912179129064817
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I4827f80cb857e5b711fff50af8ac929fe71257f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6683776
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: ChromeOS Copybot <copybot@chops-service-accounts.iam.gserviceaccount.com>1 parent fd51382 commit 0828aa7
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
0 commit comments