Skip to content

Commit 808d529

Browse files
committed
dmaengine: sdxi: context: Allocate sizeof(*ptr), not sizeof(struct ...)
Remove the superfluous comment while we're at it. Per upstream: https://lore.kernel.org/dmaengine/20250915151257.0000253b@huawei.com/ SWLSVROS-5624 Signed-off-by: Nathan Lynch <nathan.lynch@amd.com>
1 parent c29ecf2 commit 808d529

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/dma/sdxi/context.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,7 @@ static struct sdxi_cxt *alloc_cxt(struct sdxi_dev *sdxi, bool privileged)
328328
if (id == sdxi->max_cxts)
329329
return NULL;
330330

331-
/* alloc context and initialize it */
332-
cxt = kzalloc(sizeof(struct sdxi_cxt), GFP_KERNEL);
331+
cxt = kzalloc(sizeof(*cxt), GFP_KERNEL);
333332
if (!cxt)
334333
return NULL;
335334

0 commit comments

Comments
 (0)