瀏覽代碼

usb: host: ehci-dbg: replace sizeof operand

This patch fixes a coding style issue reported by checkpatch concerning
to usage of sizeof operand as a variable instead the type.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Geyslan G. Bem 10 年之前
父節點
當前提交
12ef7dd97c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/host/ehci-dbg.c

+ 1 - 1
drivers/usb/host/ehci-dbg.c

@@ -982,7 +982,7 @@ static struct debug_buffer *alloc_buffer(struct usb_bus *bus,
 {
 {
 	struct debug_buffer *buf;
 	struct debug_buffer *buf;
 
 
-	buf = kzalloc(sizeof(struct debug_buffer), GFP_KERNEL);
+	buf = kzalloc(sizeof(*buf), GFP_KERNEL);
 
 
 	if (buf) {
 	if (buf) {
 		buf->bus = bus;
 		buf->bus = bus;