Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdf5e551 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Greg Kroah-Hartman
Browse files

staging: line6: pcm.c: Changed simple_strtoul to kstrtoint



Changed call to simple_strtoul to kstrtoint in pcm_set_impulse_volume(...)

Signed-off-by: default avatarJohannes Thumshirn <morbidrsa@googlemail.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7de9935
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -48,7 +48,13 @@ static ssize_t pcm_set_impulse_volume(struct device *dev,
				      const char *buf, size_t count)
{
	struct snd_line6_pcm *line6pcm = dev2pcm(dev);
	int value = simple_strtoul(buf, NULL, 10);
	int value;
	int rv;

	rv = kstrtoint(buf, 10, &value);
	if (rv < 0)
		return rv;

	line6pcm->impulse_volume = value;

	if (value > 0)