]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: switch to kmalloc(sizeof(*status))
authorAndreas Kleinbichler <andi.kleinbichler@gmail.com>
Fri, 16 May 2025 15:25:44 +0000 (17:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 11:45:02 +0000 (13:45 +0200)
commit7aca10d57deb658daebe9d18f45587f774fb149d
treea1afd61a381f11da7b2864c0ebe80961d72152ec
parent5aac95320d0f17f1098960e903ce5e087f42bc70
staging: gpib: switch to kmalloc(sizeof(*status))

Fix checkpatch warning:

Prefer kmalloc(sizeof(*status)...) over
kmalloc(sizeof(struct gpib_status_byte)...)

Signed-off-by: Andreas Kleinbichler <andi.kleinbichler@gmail.com>
Link: https://lore.kernel.org/r/aCdY-OgvoTUjcIeF@andreas-VirtualBox
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c