瀏覽代碼

Staging: slicoss: change memory allocation style in slicoss.c

This is a patch to slicoss.c to change the memory allocation style in
slicoss.c as found by checkpatch.pl

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Ben Marsh 9 年之前
父節點
當前提交
82554c2ffb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/slicoss/slicoss.c

+ 1 - 1
drivers/staging/slicoss/slicoss.c

@@ -872,7 +872,7 @@ static int slic_upr_queue_request(struct adapter *adapter,
 	struct slic_upr *upr;
 	struct slic_upr *uprqueue;
 
-	upr = kmalloc(sizeof(struct slic_upr), GFP_ATOMIC);
+	upr = kmalloc(sizeof(*upr), GFP_ATOMIC);
 	if (!upr)
 		return -ENOMEM;