From ac3c5ec8d4d6aa026465e61fb70bbf8baabd073b Mon Sep 17 00:00:00 2001 From: Alexandru Jercaianu Date: Sat, 25 Feb 2017 10:19:41 +0000 Subject: [PATCH] Staging: bcm2835-audio: Removed redundant check This was reported by checkpatch.pl Signed-off-by: Alexandru Jercaianu Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c index 9e792367c4e6..76d85c51b5a0 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c @@ -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; } -- 2.30.2