aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/mailbox.c
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2010-05-05 11:33:08 -0400
committerHiroshi DOYU <Hiroshi.DOYU@nokia.com>2010-08-04 08:50:17 -0400
commit01072d8f4b9911047ef435a807cfd7223c94d94d (patch)
treed99e153ab92e9a91e2728535beda225be79b1033 /arch/arm/plat-omap/mailbox.c
parentf375325a040d03e2c620394ebc8bcaf0bdba01da (diff)
omap: mailbox: remove (un)likely macros from cold paths
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm/plat-omap/mailbox.c')
-rw-r--r--arch/arm/plat-omap/mailbox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c
index 66c6e87fa3ec..81076b54d37b 100644
--- a/arch/arm/plat-omap/mailbox.c
+++ b/arch/arm/plat-omap/mailbox.c
@@ -258,12 +258,12 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
258 int ret = 0; 258 int ret = 0;
259 struct omap_mbox_queue *mq; 259 struct omap_mbox_queue *mq;
260 260
261 if (likely(mbox->ops->startup)) { 261 if (mbox->ops->startup) {
262 mutex_lock(&mbox_configured_lock); 262 mutex_lock(&mbox_configured_lock);
263 if (!mbox_configured) 263 if (!mbox_configured)
264 ret = mbox->ops->startup(mbox); 264 ret = mbox->ops->startup(mbox);
265 265
266 if (unlikely(ret)) { 266 if (ret) {
267 mutex_unlock(&mbox_configured_lock); 267 mutex_unlock(&mbox_configured_lock);
268 return ret; 268 return ret;
269 } 269 }
@@ -273,7 +273,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
273 273
274 ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED, 274 ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED,
275 mbox->name, mbox); 275 mbox->name, mbox);
276 if (unlikely(ret)) { 276 if (ret) {
277 printk(KERN_ERR 277 printk(KERN_ERR
278 "failed to register mailbox interrupt:%d\n", ret); 278 "failed to register mailbox interrupt:%d\n", ret);
279 goto fail_request_irq; 279 goto fail_request_irq;
@@ -300,7 +300,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
300 fail_alloc_txq: 300 fail_alloc_txq:
301 free_irq(mbox->irq, mbox); 301 free_irq(mbox->irq, mbox);
302 fail_request_irq: 302 fail_request_irq:
303 if (unlikely(mbox->ops->shutdown)) 303 if (mbox->ops->shutdown)
304 mbox->ops->shutdown(mbox); 304 mbox->ops->shutdown(mbox);
305 305
306 return ret; 306 return ret;
@@ -314,7 +314,7 @@ static void omap_mbox_fini(struct omap_mbox *mbox)
314 mbox_queue_free(mbox->txq); 314 mbox_queue_free(mbox->txq);
315 mbox_queue_free(mbox->rxq); 315 mbox_queue_free(mbox->rxq);
316 316
317 if (unlikely(mbox->ops->shutdown)) { 317 if (mbox->ops->shutdown) {
318 mutex_lock(&mbox_configured_lock); 318 mutex_lock(&mbox_configured_lock);
319 if (mbox_configured > 0) 319 if (mbox_configured > 0)
320 mbox_configured--; 320 mbox_configured--;