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

ASoC: ssm2518: Use a signed return type for ssm2518_lookup_mcs()

The return type "unsigned int" was used by the ssm2518_lookup_mcs()
function even though it will eventually return a negative error code.
Improve this implementation detail by deletion of the type modifier then.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Markus Elfring and committed by
Mark Brown
bfbcab7c 8005c49d

+1 -1
+1 -1
sound/soc/codecs/ssm2518.c
··· 309 309 .count = ARRAY_SIZE(ssm2518_rates_12288000), 310 310 }; 311 311 312 - static unsigned int ssm2518_lookup_mcs(struct ssm2518 *ssm2518, 312 + static int ssm2518_lookup_mcs(struct ssm2518 *ssm2518, 313 313 unsigned int rate) 314 314 { 315 315 const unsigned int *sysclks = NULL;