projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b8ad4
)
usb: host: ehci-dbg: prefer kmalloc_array over kmalloc times size
author
Geyslan G. Bem
<geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:07 +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 related to
kmalloc_array usage.
On the same line the sizeof operand was enclosed in parentheses.
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 760b1d6e429f01c9cd774320310aa978976294d7..da4133492a5f786ffd3f1ec13dbdf5503233a98c 100644
(file)
--- a/
drivers/usb/host/ehci-dbg.c
+++ b/
drivers/usb/host/ehci-dbg.c
@@
-664,7
+664,7
@@
static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
unsigned i;
__hc32 tag;
- seen = kmalloc
(DBG_SCHED_LIMIT * sizeof *seen
, GFP_ATOMIC);
+ seen = kmalloc
_array(DBG_SCHED_LIMIT, sizeof(*seen)
, GFP_ATOMIC);
if (!seen)
return 0;
seen_count = 0;