Staging: bcm2835-audio: Removed redundant check
authorAlexandru Jercaianu <alex.jercaianu@gmail.com>
Sat, 25 Feb 2017 10:19:41 +0000 (10:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:07 +0000 (09:17 +0100)
This was reported by checkpatch.pl

Signed-off-by: Alexandru Jercaianu <alex.jercaianu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c

index 9e792367c4e6b83ba2a28d84930608c3304e0ce1..76d85c51b5a064b8b63e7f072a9fddb7cc82b66b 100644 (file)
@@ -56,8 +56,7 @@ static struct snd_pcm_hardware snd_bcm2835_playback_spdif_hw = {
 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime)
 {
        audio_info("Freeing up alsa stream here ..\n");
-       if (runtime->private_data)
-               kfree(runtime->private_data);
+       kfree(runtime->private_data);
        runtime->private_data = NULL;
 }