mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 09:16:41 +09:00
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: Leo Kim <leo.kim@atmel.com> Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2f7c31fd9c
commit
13b01e4095
@@ -1132,7 +1132,7 @@ _end_:
|
||||
offset += size;
|
||||
p->rx_buffer_offset = offset;
|
||||
#endif
|
||||
rqe = kmalloc(sizeof(struct rxq_entry_t), GFP_KERNEL);
|
||||
rqe = kmalloc(sizeof(*rqe), GFP_KERNEL);
|
||||
if (rqe) {
|
||||
rqe->buffer = buffer;
|
||||
rqe->buffer_size = size;
|
||||
|
||||
Reference in New Issue
Block a user