Changeset 636


Ignore:
Timestamp:
Jan 6, 2021, 9:38:02 AM (5 years ago)
Author:
Paul Smedley
Message:

Code cleanups in hda_controller.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_controller.c

    r629 r636  
    244244        unsigned long timeout;
    245245        unsigned long loopcounter;
    246 #ifdef TARGET_OS2
    247         int count = 0;
    248 #endif
    249246        wait_queue_entry_t wait;
    250247        bool warned = false;
     
    277274                if (time_after(jiffies, timeout))
    278275                        break;
    279 #ifdef TARGET_OS2
    280                 if (count >= 5000) /* Hack on OS/2 to stop infinite loop as jiffies sometimes don't increment */
    281                         break;
    282 #endif
    283276#define LOOP_COUNT_MAX  3000
    284277                if (!bus->polling_mode) {
     
    298291                }
    299292        }
    300 #ifdef TARGET_OS2
    301         count++;
    302         if (count >= 5000) {
    303                 snd_printk(KERN_WARNING "hda_intel: count >= 5000, aborting loop in azx_rirb_get_response\n");
    304         }
    305 #endif
    306293#ifndef TARGET_OS2
    307294        if (!bus->polling_mode)
Note: See TracChangeset for help on using the changeset viewer.