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

spi: mpc512x-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-3-git-send-email-songzhiqi1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Zhiqi Song and committed by
Mark Brown
722cb2b1 a2bd5afd

+2 -2
+2 -2
drivers/spi/spi-mpc512x-psc.c
··· 369 369 return -EINVAL; 370 370 371 371 if (!cs) { 372 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 372 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 373 373 if (!cs) 374 374 return -ENOMEM; 375 375 ··· 491 491 void *tempp; 492 492 struct clk *clk; 493 493 494 - master = spi_alloc_master(dev, sizeof *mps); 494 + master = spi_alloc_master(dev, sizeof(*mps)); 495 495 if (master == NULL) 496 496 return -ENOMEM; 497 497