diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-02-07 16:17:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-09 13:16:45 +0100 |
commit | c3103a361795e2b04c1e11aba1da50062f31053f (patch) | |
tree | 00ed41b5e81e7c8fd58971e67f9fadd157b1bd34 /drivers/staging/bcm2835-audio/bcm2835-vchiq.c | |
parent | 0afad91356392ab53ce3b3438173972b78bf9089 (diff) | |
download | op-kernel-dev-c3103a361795e2b04c1e11aba1da50062f31053f.zip op-kernel-dev-c3103a361795e2b04c1e11aba1da50062f31053f.tar.gz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm2835-audio/bcm2835-vchiq.c')
-rw-r--r-- | drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |