[PATCH] Staging: bcm2835-audio: Removed redundant check
Alexandru Jercaianu
alex.jercaianu at gmail.com
Sat Feb 25 02:19:41 PST 2017
This was reported by checkpatch.pl
Signed-off-by: Alexandru Jercaianu <alex.jercaianu at gmail.com>
---
drivers/staging/bcm2835-audio/bcm2835-pcm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/bcm2835-audio/bcm2835-pcm.c
index 9e79236..76d85c5 100644
--- a/drivers/staging/bcm2835-audio/bcm2835-pcm.c
+++ b/drivers/staging/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.7.4
More information about the linux-rpi-kernel
mailing list