From c3103a361795e2b04c1e11aba1da50062f31053f Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 7 Feb 2017 16:17:57 +0300 Subject: Staging: bcm2835-audio: remove unneeded NULL check We just dereferenced "instance" on the line before so checking it here is pointless. Anyway, it can't be NULL here so let's remove the check. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'drivers/staging') diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index b7922be..6578246 100644 --- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c @@ -775,10 +775,9 @@ unlock: mutex_unlock(&instance->vchi_mutex); /* Stop the audio service */ - if (instance) { - vc_vchi_audio_deinit(instance); - alsa_stream->instance = NULL; - } + vc_vchi_audio_deinit(instance); + alsa_stream->instance = NULL; + LOG_DBG(" .. OUT\n"); return ret; } -- cgit v1.1