From: Nicolas Boichat Date: Mon, 20 Jul 2015 01:32:05 +0000 (+0800) Subject: ASoC: rt5645: Remove return value in jack detect work X-Git-Tag: v4.14-rc1~4700^2~13^2~21^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f136dce45116027fec65c342fbcb5aaa900729c6;p=platform%2Fkernel%2Flinux-rpi.git ASoC: rt5645: Remove return value in jack detect work "ASoC: rt5645: Check if codec is initialized in workqueue handler" adds a check if codec is NULL in rt5645_irq_detection, which returns an int. However, "ASoC: rt5645: Remove irq_jack_detection function" removes that function, and moves the code in jack_detect_work, which returns void. Remove the return value to fix compilation warning. Signed-off-by: Nicolas Boichat Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 19392b1..2ee4278 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -2928,7 +2928,7 @@ static void rt5645_jack_detect_work(struct work_struct *work) int val, btn_type, gpio_state = 0, report = 0; if (!rt5645->codec) - return -EINVAL; + return; switch (rt5645->pdata.jd_mode) { case 0: /* Not using rt5645 JD */