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

spi: mpc52xx-psc: add parenthesis for sizeof

Fix missing parenthesis of sizeof reported by checkpatch.pl:
WARNING: sizeof *pp should be sizeof(*pp).

The kernel coding style suggests thinking of sizeof as a function
and add parenthesis.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Link: https://lore.kernel.org/r/1621301902-64158-5-git-send-email-songzhiqi1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Zhiqi Song and committed by
Mark Brown
75d4c2d6 ac7357ac

+2 -2
+2 -2
drivers/spi/spi-mpc52xx-psc.c
··· 265 265 return -EINVAL; 266 266 267 267 if (!cs) { 268 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 268 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 269 269 if (!cs) 270 270 return -ENOMEM; 271 271 spi->controller_state = cs; ··· 365 365 struct spi_master *master; 366 366 int ret; 367 367 368 - master = spi_alloc_master(dev, sizeof *mps); 368 + master = spi_alloc_master(dev, sizeof(*mps)); 369 369 if (master == NULL) 370 370 return -ENOMEM; 371 371