Skip to content

Commit

Permalink
OMAP: mailbox: fix checkpatch warnings
Browse files Browse the repository at this point in the history
Fix the following checkpatch warnings observed in mailbox module.

WARNING: please, no space for starting a line,
                                excluding comments
+ fail_alloc_rxq:$

WARNING: please, no space for starting a line,
                                excluding comments
+ fail_alloc_txq:$

WARNING: please, no space for starting a line,
                                excluding comments
+ fail_request_irq:$

WARNING: line over 80 characters
+       mbox_kfifo_size = max_t(unsigned int, mbox_kfifo_size, sizeof(mbox_msg_t));

Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Acked-by: Hiroshi Doyu <hiroshi.doyu@nokia.com>
  • Loading branch information
Kanigeri, Hari committed Dec 2, 2010
1 parent d229504 commit ab66ac3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/arm/plat-omap/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ static int omap_mbox_startup(struct omap_mbox *mbox)

return 0;

fail_alloc_rxq:
fail_alloc_rxq:
mbox_queue_free(mbox->txq);
fail_alloc_txq:
fail_alloc_txq:
free_irq(mbox->irq, mbox);
fail_request_irq:
fail_request_irq:
if (mbox->ops->shutdown)
mbox->ops->shutdown(mbox);

Expand Down Expand Up @@ -396,7 +396,8 @@ static int __init omap_mbox_init(void)

/* kfifo size sanity check: alignment and minimal size */
mbox_kfifo_size = ALIGN(mbox_kfifo_size, sizeof(mbox_msg_t));
mbox_kfifo_size = max_t(unsigned int, mbox_kfifo_size, sizeof(mbox_msg_t));
mbox_kfifo_size = max_t(unsigned int, mbox_kfifo_size,
sizeof(mbox_msg_t));

return 0;
}
Expand Down

0 comments on commit ab66ac3

Please sign in to comment.