sh: simplify WARN usage in SH clock driver
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
diff --git a/drivers/sh/clk.c b/drivers/sh/clk.c
index c90a3e1..5d84ada 100644
--- a/drivers/sh/clk.c
+++ b/drivers/sh/clk.c
@@ -160,12 +160,9 @@
static void __clk_disable(struct clk *clk)
{
- if (clk->usecount == 0) {
- printk(KERN_ERR "Trying disable clock %s with 0 usecount\n",
- clk->name);
- WARN_ON(1);
+ if (WARN(!clk->usecount, "Trying to disable clock %s with 0 usecount\n",
+ clk->name))
return;
- }
if (!(--clk->usecount)) {
if (likely(clk->ops && clk->ops->disable))