projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2432f0
)
usb: host: ehci-dbg: replace sizeof operand
author
Geyslan G. Bem
<geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:05 +0000
(22:45 -0300)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-dbg.c
b/drivers/usb/host/ehci-dbg.c
index 37dac751bac50b834f591ace92db79d8a4d11171..22e6d4c4548a4948857a9d6944ad9f8c2f974859 100644
(file)
--- 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;