hangcheck-timer: cleanup casting in hangcheck_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Oct 2014 08:42:50 +0000 (11:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 19:24:01 +0000 (11:24 -0800)
commitd0439a5442cf43434d87faf34f4d2c19d3aba88a
treec55e84e8a30902fbbec6f87d7990be039ec23045
parentd25221525e0e2cfd70e4ec7216549c06609a8bd2
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/hangcheck-timer.c