rtc-bfin: Remove redundant unlikely()
Subsystems (2)
PATCH 1/1 rtc-bfin: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted here.
Signed-off-by Tobias Klauser <[email protected]>
--- drivers/rtc/rtc-bfin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-bfin.c +1 -1
@@ -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
Quoted 1 line · Tobias Klauser
IS_ERR()already impliesunlikely(), so it can be omitted here.
sounds like something that checkpatch.pl could look for ...
Quoted 1 line
Signed-off-by Tobias Klauser <[email protected]>
Acked-by Mike Frysinger <[email protected]>
-mike