summaryrefslogtreecommitdiff
path: root/drivers/mailbox/omap-mailbox.c
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2016-04-06 17:37:38 (GMT)
committerJassi Brar <jaswinder.singh@linaro.org>2016-04-26 04:49:37 (GMT)
commit86f6f5e2e2c0c520dfb0bea336cbda1f190c0357 (patch)
treeae9ae756a9f8b1b7b17dcc43035a7f9ad0ad4aca /drivers/mailbox/omap-mailbox.c
parent4899f78a3dccda41ffdaa1a2cbf78209753e0f70 (diff)
downloadlinux-86f6f5e2e2c0c520dfb0bea336cbda1f190c0357.tar.xz
mailbox/omap: use variable name for sizeof() operator
Fix the code formatting to use the kernel preferred style of using the actual variables to determize the size using the sizeof() operator. This fixes the corresponding checkpatch warning as well. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/omap-mailbox.c')
-rw-r--r--drivers/mailbox/omap-mailbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c
index 8754d81..ba15a49 100644
--- a/drivers/mailbox/omap-mailbox.c
+++ b/drivers/mailbox/omap-mailbox.c
@@ -384,7 +384,7 @@ static struct omap_mbox_queue *mbox_queue_alloc(struct omap_mbox *mbox,
if (!work)
return NULL;
- mq = kzalloc(sizeof(struct omap_mbox_queue), GFP_KERNEL);
+ mq = kzalloc(sizeof(*mq), GFP_KERNEL);
if (!mq)
return NULL;