staging: bcm2835-audio: Remove superfluous open flag
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:36 +0000 (17:58 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:29 +0000 (00:08 +0100)
commit6f59286710d8cd5c8e50cda2ddfeb5ca9d0ba7f4
tree424364ceaa4272078a0e018976a69353a9a6ffd9
parent6ca820d751d64289e5ac6be9abb6df115b10222e
staging: bcm2835-audio: Remove superfluous open flag

commit ad13924de6b07cb52714ea1809c57b2e72a24504 upstream.

All the alsa_stream->open flag checks in the current code are
redundant, and they cannot be racy.  For the code simplification,
let's remove the flag and its check.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h