Commit 01072d8f authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen Committed by Hiroshi DOYU

omap: mailbox: remove (un)likely macros from cold paths

Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
parent f375325a
...@@ -258,12 +258,12 @@ static int omap_mbox_startup(struct omap_mbox *mbox) ...@@ -258,12 +258,12 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
int ret = 0; int ret = 0;
struct omap_mbox_queue *mq; struct omap_mbox_queue *mq;
if (likely(mbox->ops->startup)) { if (mbox->ops->startup) {
mutex_lock(&mbox_configured_lock); mutex_lock(&mbox_configured_lock);
if (!mbox_configured) if (!mbox_configured)
ret = mbox->ops->startup(mbox); ret = mbox->ops->startup(mbox);
if (unlikely(ret)) { if (ret) {
mutex_unlock(&mbox_configured_lock); mutex_unlock(&mbox_configured_lock);
return ret; return ret;
} }
...@@ -273,7 +273,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox) ...@@ -273,7 +273,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED, ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED,
mbox->name, mbox); mbox->name, mbox);
if (unlikely(ret)) { if (ret) {
printk(KERN_ERR printk(KERN_ERR
"failed to register mailbox interrupt:%d\n", ret); "failed to register mailbox interrupt:%d\n", ret);
goto fail_request_irq; goto fail_request_irq;
...@@ -300,7 +300,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox) ...@@ -300,7 +300,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
fail_alloc_txq: fail_alloc_txq:
free_irq(mbox->irq, mbox); free_irq(mbox->irq, mbox);
fail_request_irq: fail_request_irq:
if (unlikely(mbox->ops->shutdown)) if (mbox->ops->shutdown)
mbox->ops->shutdown(mbox); mbox->ops->shutdown(mbox);
return ret; return ret;
...@@ -314,7 +314,7 @@ static void omap_mbox_fini(struct omap_mbox *mbox) ...@@ -314,7 +314,7 @@ static void omap_mbox_fini(struct omap_mbox *mbox)
mbox_queue_free(mbox->txq); mbox_queue_free(mbox->txq);
mbox_queue_free(mbox->rxq); mbox_queue_free(mbox->rxq);
if (unlikely(mbox->ops->shutdown)) { if (mbox->ops->shutdown) {
mutex_lock(&mbox_configured_lock); mutex_lock(&mbox_configured_lock);
if (mbox_configured > 0) if (mbox_configured > 0)
mbox_configured--; mbox_configured--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment