hal: Remove redundant code to fix compilation error

Remove duplication of code for telephony device check

Change-Id: I1770751dcca4fb8a34aeac15b8e0120a62ce1118
CRs-Fixed: 1081411
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index c9e144f..09c5a96 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4712,11 +4712,6 @@
     pthread_mutex_unlock(&adev->lock);
 
     /* Update config params with the requested sample rate and channels */
-    if (in->device == AUDIO_DEVICE_IN_TELEPHONY_RX) {
-        if (adev->mode != AUDIO_MODE_IN_CALL) {
-            ret = -EINVAL;
-            goto err_open;
-        }
     if ((in->device == AUDIO_DEVICE_IN_TELEPHONY_RX) &&
           (adev->mode != AUDIO_MODE_IN_CALL)) {
         ret = -EINVAL;