Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 759aa90a authored by Kogara Naveen Kumar's avatar Kogara Naveen Kumar
Browse files

audio-hal: fix for kw issue

Changes to fix file descriptor close.

Change-Id: Icff466d1f758190b9aa77b72d6896a664df3ebce
parent d7296d47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1877,7 +1877,7 @@ static int set_spkr_prot_v_vali_cfg(int wait_time, int vali_time)
    if (ioctl(cal_fd, AUDIO_SET_CALIBRATION, &cal_data))
        ALOGE("%s: failed to set TH VI V_VALI_CFG, errno = %d", __func__, errno);

    if (cal_fd > 0)
    if (cal_fd >= 0)
        close(cal_fd);
done:
    return ret;