浏览代码

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>
Suman Anna 9 年之前
父节点
当前提交
86f6f5e2e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mailbox/omap-mailbox.c

+ 1 - 1
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;