Changeset 661 for GPL


Ignore:
Timestamp:
Jan 26, 2021, 4:54:11 AM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups

Location:
GPL/branches/uniaud32-next
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/core/pcm_lib.c

    r629 r661  
    14041404EXPORT_SYMBOL(snd_pcm_hw_constraint_ratdens);
    14051405
     1406#ifdef TARGET_OS2
     1407static inline min_not_zero(unsigned int x, unsigned int y) {
     1408        unsigned int __x = (x);
     1409        unsigned int __y = (y);
     1410        __x == 0 ? __y : ((__y == 0) ? __x : min(__x, __y));
     1411}
     1412#endif
     1413
    14061414static int snd_pcm_hw_rule_msbits(struct snd_pcm_hw_params *params,
    14071415                                  struct snd_pcm_hw_rule *rule)
     
    14181426        if ((snd_interval_value(i) == width) ||
    14191427            (width == 0 && snd_interval_value(i) > msbits))
    1420 #ifdef TARGET_OS2 //fixme min_not_zero uses typeof()
    1421                 params->msbits = msbits;
    1422 #else
    14231428                params->msbits = min_not_zero(params->msbits, msbits);
    1424 #endif
    14251429
    14261430        return 0;
  • GPL/branches/uniaud32-next/lib32/seq_file.c

    r615 r661  
    128128                if (error < 0)
    129129                        break;
    130 #if 0 //fixme
    131                 if (unlikely(error)) {
     130                if (error) {
    132131                        error = 0;
    133132                        m->count = 0;
    134133                }
    135 #endif
    136134                if (seq_has_overflowed(m))
    137135                        goto Eoverflow;
     
    196194        m->version = file->f_version;
    197195
    198 #if 0 //fixme
    199196        /* Don't assume *ppos is where we left it */
    200         if (unlikely(*ppos != m->read_pos)) {
     197        if (*ppos != m->read_pos) {
    201198                while ((err = traverse(m, *ppos)) == -EAGAIN)
    202199                        ;
     
    212209                }
    213210        }
    214 #endif
     211
    215212        /* grab buffer if we didn't have one */
    216213        if (!m->buf) {
     
    247244                if (err < 0)
    248245                        break;
    249 #if 0 //fixme
    250                 if (unlikely(err))
     246                if (err)
    251247                        m->count = 0;
    252                 if (unlikely(!m->count)) {
     248                if (!m->count) {
    253249                        p = m->op->next(m, p, &pos);
    254250                        m->index = pos;
    255251                        continue;
    256252                }
    257 #endif
    258253                if (m->count < m->size)
    259254                        goto Fill;
     
    284279                if (seq_has_overflowed(m) || err) {
    285280                        m->count = offs;
    286 #if 0 //fixme
    287                         if (likely(err <= 0))
     281                        if (err <= 0)
    288282                                break;
    289 #endif
    290283                }
    291284                pos = next;
Note: See TracChangeset for help on using the changeset viewer.