Skip to content

Commit

Permalink
ASoC: simple-card: Remove useless function argument
Browse files Browse the repository at this point in the history
The device node pointer 'cpu' is not used in the function
asoc_simple_card_parse_daifmt().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jean-Francois Moine authored and Mark Brown committed Nov 25, 2014
1 parent 0099c76 commit 7195d92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/soc/generic/simple-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ asoc_simple_card_sub_parse_of(struct device_node *np,

static int asoc_simple_card_parse_daifmt(struct device_node *node,
struct simple_card_data *priv,
struct device_node *cpu,
struct device_node *codec,
char *prefix, int idx)
{
Expand Down Expand Up @@ -309,7 +308,7 @@ static int asoc_simple_card_dai_link_of(struct device_node *node,
}

ret = asoc_simple_card_parse_daifmt(node, priv,
cpu, codec, prefix, idx);
codec, prefix, idx);
if (ret < 0)
goto dai_link_of_err;

Expand Down

0 comments on commit 7195d92

Please sign in to comment.