summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-03-03 09:24:12 +0100
committerWim Van Sebroeck <wim@iguana.be>2016-03-16 21:09:16 +0100
commit84b84bcf4f718b7b9f5296d4068025fea801a0e1 (patch)
treee6f039e2e02679d26a63c4757245cf8aa4281c8f /include/asm-generic
parentccc8208d0855a5b02a4fc49c141b6f1dbf282304 (diff)
downloadlinux-84b84bcf4f718b7b9f5296d4068025fea801a0e1.tar.bz2
watchdog: tangox_wdt: test clock rate to avoid division by 0
The clk API may return 0 on clk_get_rate, so we should check the result before using it as a divisor. For this, refactor the code to use a central error path. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions