summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2016-01-25 22:45:05 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 13:44:05 -0800
commit12ef7dd97c3302c6c308484ffce392ef2383783a (patch)
treecdce1742e0f8b1c4aa753af5c3eee63f713fd5f6 /drivers
parente2432f06b5669538f79d64d18e60b2c8c05d59f2 (diff)
downloadlinux-12ef7dd97c3302c6c308484ffce392ef2383783a.tar.bz2
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')
-rw-r--r--drivers/usb/host/ehci-dbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
index 37dac751bac5..22e6d4c4548a 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;