Skip to contentSkip to conversation

rtc-bfin: Remove redundant unlikely()

PATCH In review Tobias Klauser 2 participants 2 messages Dec 9, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc-bfin: Remove redundant unlikely()

IS_ERR() already implies unlikely(), so it can be omitted here.

---
 drivers/rtc/rtc-bfin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-bfin.c +1 -1
index b4b6087..4ba3e33 100644
@@ -383,7 +383,7 @@ static int __devinit bfin_rtc_probe(struct platform_device *pdev)
 	/* Register our RTC with the RTC framework */
 	rtc->rtc_dev = rtc_device_register(pdev->name, dev, &bfin_rtc_ops,
 						THIS_MODULE);
-	if (unlikely(IS_ERR(rtc->rtc_dev))) {
+	if (IS_ERR(rtc->rtc_dev)) {
 		ret = PTR_ERR(rtc->rtc_dev);
 		goto err;
 	}
Signature · 1 line
1.7.0.4