summaryrefslogtreecommitdiff
path: root/drivers/pps
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2017-04-12 19:29:23 +0300
committerThierry Reding <thierry.reding@gmail.com>2017-04-13 18:34:54 +0300
commit6db78b201b3fa3611b9557f0d677cd4560358f9d (patch)
tree6a8601d0f02f647d29193005f8bd715f3c3922f8 /drivers/pps
parent4a813b262f85ac34c9f3e557d9be79f846a381df (diff)
downloadlinux-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