2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 14:14:00 +08:00

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>
This commit is contained in:
Dan Carpenter 2017-02-07 16:17:57 +03:00 committed by Greg Kroah-Hartman
parent 0afad91356
commit c3103a3617

View File

@ -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;
}