diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2016-01-25 22:45:05 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-03 13:44:05 -0800 |
commit | 12ef7dd97c3302c6c308484ffce392ef2383783a (patch) | |
tree | cdce1742e0f8b1c4aa753af5c3eee63f713fd5f6 /drivers/usb/host/ehci-dbg.c | |
parent | e2432f06b5669538f79d64d18e60b2c8c05d59f2 (diff) | |
download | op-kernel-dev-12ef7dd97c3302c6c308484ffce392ef2383783a.zip op-kernel-dev-12ef7dd97c3302c6c308484ffce392ef2383783a.tar.gz |
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>
Diffstat (limited to 'drivers/usb/host/ehci-dbg.c')
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 37dac75..22e6d4c 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c @@ -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; |