Skip to content
Commit 4c1d2fc7 authored by Benjamin Sherman's avatar Benjamin Sherman Committed by Greg Kroah-Hartman
Browse files

staging: mt7621-dma: sizeof via pointer dereference



Pass the size of a struct into kzalloc by pointer dereference.  This
complies with the Linux kernel coding style and removes the possibility
for a bug if the pointer's type is changed.

Signed-off-by: default avatarBenjamin Sherman <benjamin@bensherman.io>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8210b11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment