staging: gpib: switch to kmalloc(sizeof(*status))
PATCH 1/1 staging: gpib: switch to kmalloc(sizeof(*status))
Fix checkpatch warning:
Prefer kmalloc(sizeof(*status)...) overkmalloc(sizeof(struct gpib_status_byte)...)
Signed-off-by Andreas Kleinbichler <[email protected]>
--- drivers/staging/gpib/common/gpib_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -198,7 +198,7 @@ int push_status_byte(struct gpib_board *board, struct gpib_status_queue *device,return retval; } - status =kmalloc (sizeof (struct gpib_status_byte ),GFP_KERNEL ); + status =kmalloc (sizeof (*status),GFP_KERNEL );if (!status)return -ENOMEM ;
Signature · 1 line
2.43.0