Skip to content

Commit d2253bf

Browse files
Ryand1234storulf
authored andcommitted
mmc: core: Calculate size from pointer
Calculate the size from pointer instead of struct to adhere to linux kernel coding style. Issue reported by checkpatch. This commit has no functional changes. Signed-off-by: Riyan Dhiman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 03117a4 commit d2253bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/core/block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
25302530
return ERR_PTR(devidx);
25312531
}
25322532

2533-
md = kzalloc(sizeof(struct mmc_blk_data), GFP_KERNEL);
2533+
md = kzalloc(sizeof(*md), GFP_KERNEL);
25342534
if (!md) {
25352535
ret = -ENOMEM;
25362536
goto out;

0 commit comments

Comments
 (0)