alsa: Remove pointless initialization.
authorAndre Noll <maan@systemlinux.org>
Fri, 27 Dec 2013 23:57:31 +0000 (23:57 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 8 Mar 2014 13:45:20 +0000 (14:45 +0100)
The value stored in msg is never read. Found by the clang analyzer.

alsa_write.c

index 1c0b928158d04405c66321e4ed6cfeec1468ee23..3a8a5f40ea19ff1b0d5c844e96a2aed4de167767 100644 (file)
@@ -114,7 +114,6 @@ static int alsa_init(struct private_alsa_write_data *pad,
                &pad->sample_rate, NULL);
        if (ret < 0)
                goto fail;
-       msg = "unable to get buffer time";
        /* alsa wants microseconds */
        pad->buffer_time = conf->buffer_time_arg * 1000;
        msg = "could not set buffer time";