Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <riyandhiman14@gmail.com>
Link: https://lore.kernel.org/r/20240901173309.7124-1-riyandhiman14@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Riyan Dhiman and committed by
Ulf Hansson
d2253bfa 03117a49

+1 -1
+1 -1
drivers/mmc/core/block.c
··· 2530 2530 return ERR_PTR(devidx); 2531 2531 } 2532 2532 2533 - md = kzalloc(sizeof(struct mmc_blk_data), GFP_KERNEL); 2533 + md = kzalloc(sizeof(*md), GFP_KERNEL); 2534 2534 if (!md) { 2535 2535 ret = -ENOMEM; 2536 2536 goto out;