Skip to content

Commit

Permalink
ALSA: bebob: obsolete useless member of private structure
Browse files Browse the repository at this point in the history
The private structure of this driver has 'connected' member but nowadays
it's useless. This commit removes it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Sakamoto authored and Takashi Iwai committed Jun 12, 2019
1 parent 83122f8 commit 87a2309
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions sound/firewire/bebob/bebob.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ struct snd_bebob {
unsigned int midi_input_ports;
unsigned int midi_output_ports;

bool connected;

struct amdtp_stream tx_stream;
struct amdtp_stream rx_stream;
struct cmp_connection out_conn;
Expand Down
7 changes: 0 additions & 7 deletions sound/firewire/bebob/bebob_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,6 @@ static int make_both_connections(struct snd_bebob *bebob)
{
int err = 0;

if (bebob->connected)
return 0;

err = cmp_connection_establish(&bebob->out_conn,
amdtp_stream_get_max_payload(&bebob->tx_stream));
if (err < 0)
Expand All @@ -437,8 +434,6 @@ static int make_both_connections(struct snd_bebob *bebob)
return err;
}

bebob->connected = true;

return 0;
}

Expand All @@ -448,8 +443,6 @@ break_both_connections(struct snd_bebob *bebob)
cmp_connection_break(&bebob->in_conn);
cmp_connection_break(&bebob->out_conn);

bebob->connected = false;

/* These models seems to be in transition state for a longer time. */
if (bebob->maudio_special_quirk != NULL)
msleep(200);
Expand Down

0 comments on commit 87a2309

Please sign in to comment.