Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3103a36 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0afad913
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -775,10 +775,9 @@ int bcm2835_audio_close(struct bcm2835_alsa_stream *alsa_stream)
	mutex_unlock(&instance->vchi_mutex);

	/* Stop the audio service */
	if (instance) {
	vc_vchi_audio_deinit(instance);
	alsa_stream->instance = NULL;
	}

	LOG_DBG(" .. OUT\n");
	return ret;
}