Commit cb272521 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Greg Kroah-Hartman

usb: host: ehci-dbg: prefer kmalloc_array over kmalloc times size

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: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04b8ad43
...@@ -664,7 +664,7 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf) ...@@ -664,7 +664,7 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
unsigned i; unsigned i;
__hc32 tag; __hc32 tag;
seen = kmalloc(DBG_SCHED_LIMIT * sizeof *seen, GFP_ATOMIC); seen = kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC);
if (!seen) if (!seen)
return 0; return 0;
seen_count = 0; seen_count = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment