]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteed59dca401d2965a569107b21e0c2edebd3cbf2
tree1f6030664feaca2aa55b5f4b9045138af809c68c
parent5951892643eab375fe4b99342e287240fb52258d
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