Browse Source

sh: heartbeat: ioremap is expected to succeed

ioremap is expected to succeed

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Roel Kluin 17 years ago
parent
commit
1de83e94e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/sh/drivers/heartbeat.c

+ 1 - 1
arch/sh/drivers/heartbeat.c

@@ -93,7 +93,7 @@ static int heartbeat_drv_probe(struct platform_device *pdev)
 	}
 
 	hd->base = ioremap_nocache(res->start, res->end - res->start + 1);
-	if (!unlikely(hd->base)) {
+	if (unlikely(!hd->base)) {
 		dev_err(&pdev->dev, "ioremap failed\n");
 
 		if (!pdev->dev.platform_data)