Skip to content

Commit

Permalink
ASoC: rockchip: fix a misjudgement by return
Browse files Browse the repository at this point in the history
Being careless, judge the return value of snd_soc_card_jack_new
is opposite, so it should be fixed.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Xing Zheng authored and Mark Brown committed Aug 26, 2015
1 parent ebb75c0 commit f8ce200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/rockchip/rockchip_rt5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime)
SND_JACK_BTN_0 | SND_JACK_BTN_1 |
SND_JACK_BTN_2 | SND_JACK_BTN_3,
&headset_jack, NULL, 0);
if (!ret) {
if (ret) {
dev_err(card->dev, "New Headset Jack failed! (%d)\n", ret);
return ret;
}
Expand Down

0 comments on commit f8ce200

Please sign in to comment.