mailbox/omap: use variable name for sizeof() operator
authorSuman Anna <s-anna@ti.com>
Wed, 6 Apr 2016 17:37:38 +0000 (12:37 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 26 Apr 2016 04:49:37 +0000 (10:19 +0530)
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>
drivers/mailbox/omap-mailbox.c

index 8754d81..ba15a49 100644 (file)
@@ -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;