sh: tmu: Changed switch statement to shift operation
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Tue, 21 Aug 2012 04:24:43 +0000 (13:24 +0900)
committerNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Tue, 21 Aug 2012 06:00:34 +0000 (15:00 +0900)
commitd4430426b6d135d6d3fc550be660055793185e0d
treeb16764e6cee06e1402e8d6feadf7c80bcac6e87e
parent73f35e0b156c771333d449ca86b99600d094d37f
sh: tmu: Changed switch statement to shift operation

Calculation of the bit position using switch statement can substitute
shift operation using ffs.
And removed unsed macro and variable.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/lib/time.c