]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix compiler warning due to returning uninitialized value
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 13 Jun 2019 03:35:22 +0000 (12:35 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Jun 2019 04:59:09 +0000 (06:59 +0200)
commitbe1ac22b4f51d61efdddc971f91c5ae24fc18342
treed0a74b9ed6be776b9a8b8611f9e7f29eefad1a07
parent1cf65c03818d1bd234415a7c9dd7258787266295
ALSA: dice: fix compiler warning due to returning uninitialized value

This commit fixes the warning due to returning uninitialized value
from start_streams() helper function.

   sound/firewire/dice/dice-stream.c: In function 'start_streams.isra.0':
>> sound/firewire/dice/dice-stream.c:350:6: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
     int err;
         ^~~

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 6f38894541ff ("ALSA: dice: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c