ASoC: rt5645: Remove return value in jack detect work
authorNicolas Boichat <drinkcat@chromium.org>
Mon, 20 Jul 2015 01:32:05 +0000 (09:32 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2015 17:14:15 +0000 (18:14 +0100)
"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 <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c

index 19392b13bd5b5d27054c15e767a783d60528a6a6..2ee42781cc52f9094307e553b8dc0e50ec4a1d6a 100644 (file)
@@ -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 */