powerpc/rtas-rtc: remove sideeffects of printk_ratelimit
authorChristian Dietrich <christian.dietrich@informatik.uni-erlangen.de>
Sat, 4 Jun 2011 05:35:47 +0000 (05:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 29 Jun 2011 05:30:43 +0000 (15:30 +1000)
commit9a8f99fab02db296815d7f0ae8ba8ce169df0063
tree5f1bfc1bf3febaded62f6ab64afe1b7a6b3d15ba
parent937c190ccdd29855828529fc2b4b3e5f1282ff23
powerpc/rtas-rtc: remove sideeffects of printk_ratelimit

Don't use printk_ratelimit() as an additional condition for returning
on an error. Because when the ratelimit is reached, printk_ratelimit
will return 0 and e.g. in rtas_get_boot_time won't check for an error
condition.

Signed-off-by: Christian Dietrich <christian.dietrich@informatik.uni-erlangen.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/rtas-rtc.c