alsa_write: Use NULL instead of 0.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 9 Oct 2014 03:06:15 +0000 (03:06 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Jan 2015 12:19:18 +0000 (13:19 +0100)
This silences the following sparse warning:

sparse: alsa_write.c:128:31: warning: Using plain integer as NULL pointer

alsa_write.c

index 43b2686..b0b21f2 100644 (file)
@@ -125,7 +125,7 @@ static int alsa_init(struct private_alsa_write_data *pad,
        period_time = pad->buffer_time * 250; /* buffer time / 4 */
        msg = "could not set period time";
        ret = snd_pcm_hw_params_set_period_time_near(pad->handle, hwparams,
-               &period_time, 0);
+               &period_time, NULL);
        if (ret < 0)
                goto fail;