Commit 13b01e40 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: fixes a struct allocation to match coding standards

This patch fixes the checks reported by checkpatch.pl
for prefer kmalloc(sizeof(*rqe)...) over kmalloc(sizeof(struct rxq_entry_t)...)
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f7c31fd
...@@ -1132,7 +1132,7 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status) ...@@ -1132,7 +1132,7 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status)
offset += size; offset += size;
p->rx_buffer_offset = offset; p->rx_buffer_offset = offset;
#endif #endif
rqe = kmalloc(sizeof(struct rxq_entry_t), GFP_KERNEL); rqe = kmalloc(sizeof(*rqe), GFP_KERNEL);
if (rqe) { if (rqe) {
rqe->buffer = buffer; rqe->buffer = buffer;
rqe->buffer_size = size; rqe->buffer_size = size;
......
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