From: Dan Carpenter Date: Wed, 29 Oct 2014 08:42:50 +0000 (+0300) Subject: hangcheck-timer: cleanup casting in hangcheck_init() X-Git-Tag: omap-for-v3.19/fixes-rc1~84^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0439a5442cf43434d87faf34f4d2c19d3aba88a;p=pandora-kernel.git hangcheck-timer: cleanup casting in hangcheck_init() The 32 bit addition "(hangcheck_margin + hangcheck_tick)" could potentially overflow. It triggers a static checker warning to have an overflowed addition followed by a no-op cast. I have moved the cast so that the addition can't overflow. Also I removed the unneeded cast on the following line since both "hangcheck_tsc_margin" and "TIMER_FREQ" are already 64 bit types. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed