]> git.baikalelectronics.ru Git - kernel.git/commit
spi: intel: Use correct order for the parameters of devm_kcalloc()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 May 2022 06:59:35 +0000 (08:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:41:28 +0000 (12:41 +0100)
commitdcf53fb0d9160ee3c278b596aa5945c3b902a24e
tree60249409754b000544d819aaa8c5bb525092a37f
parent89a67f32229b6616d6d1ff3849b3ea6c9e8c3a6d
spi: intel: Use correct order for the parameters of devm_kcalloc()

We should have 'n', then 'size', not the opposite.
This is harmless because the 2 values are just multiplied, but having
the correct order silence a (unpublished yet) smatch warning.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d114558dd0351b863ced8cc01b31754a5a4b960d.1653116362.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-intel.c