diff options
| author | Miquel Raynal <[email protected]> | 2022-05-20 08:25:00 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2022-05-24 23:24:21 +0000 |
| commit | 3f3489248927a53fcfec571ff603163f6b676a46 (patch) | |
| tree | 3b31bfafc881a2d0ea5c0b8fa56c25824cca6e39 /drivers/pci/controller/dwc | |
| parent | rtc: rzn1: Fix error code in probe (diff) | |
| download | kernel-3f3489248927a53fcfec571ff603163f6b676a46.tar.gz kernel-3f3489248927a53fcfec571ff603163f6b676a46.zip | |
rtc: rzn1: Fix a variable type
The calculation in ->set_offset() handles both negative and positive
offsets. The 'steps' variable will be checked to be in a specific [-x;
+x] range, which means it must be a signed integer rather than
unsigned.
This also fixes the following smatch warning:
warn: 'steps' 'true' implies 'steps > 0' is 'true'
Fixes: be4a11cf98af ("rtc: rzn1: Add oscillator offset support")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions
