staging: bcm2835-audio: Remove superfluous open flag
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:36 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:14:58 +0000 (11:14 +0200)
commitaa45eeee516a16cbcb6733e3a57f06e6e4745749
tree1f6030664feaca2aa55b5f4b9045138af809c68c
parent626f28d51d2123272b6520d61032c542b4c0eaaf
staging: bcm2835-audio: Remove superfluous open flag

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