usb: host: ehci-dbg: replace sizeof operand
authorGeyslan G. Bem <geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:05 +0000 (22:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:44:05 +0000 (13:44 -0800)
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>
drivers/usb/host/ehci-dbg.c

index 37dac751bac50b834f591ace92db79d8a4d11171..22e6d4c4548a4948857a9d6944ad9f8c2f974859 100644 (file)
@@ -982,7 +982,7 @@ static struct debug_buffer *alloc_buffer(struct usb_bus *bus,
 {
        struct debug_buffer *buf;
 
-       buf = kzalloc(sizeof(struct debug_buffer), GFP_KERNEL);
+       buf = kzalloc(sizeof(*buf), GFP_KERNEL);
 
        if (buf) {
                buf->bus = bus;