From: Dan Carpenter Date: Tue, 7 Feb 2017 13:17:57 +0000 (+0300) Subject: Staging: bcm2835-audio: remove unneeded NULL check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c3103a361795e2b04c1e11aba1da50062f31053f;p=linux.git 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 --- diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index b7922be4909c5..6578246b0f088 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; }