diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2017-04-12 19:29:23 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-04-13 18:34:54 +0300 |
commit | 6db78b201b3fa3611b9557f0d677cd4560358f9d (patch) | |
tree | 6a8601d0f02f647d29193005f8bd715f3c3922f8 /drivers/pps | |
parent | 4a813b262f85ac34c9f3e557d9be79f846a381df (diff) | |
download | linux-6db78b201b3fa3611b9557f0d677cd4560358f9d.tar.xz |
pwm: tegra: Avoid potential overflow for short periods
For very short periods, the result of the division might overflow the
unsigned long hz variable (on 32-bit architectures). Avoid that by
making it an unsigned long long. While at it, also remove an unneeded
local variable whose only purpose is to store a temporary computation.
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pps')
0 files changed, 0 insertions, 0 deletions