Changeset a94de68 in mainline


Ignore:
Timestamp:
2013-04-03T18:42:19Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b893cd6
Parents:
585af0d
Message:

hound: remove redundant checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound.c

    r585af0d ra94de68  
    354354        fibril_mutex_lock(&hound->list_guard);
    355355
    356         if (list_empty(&hound->sinks)) {
    357                 fibril_mutex_unlock(&hound->list_guard);
    358                 log_debug("No sinks available");
    359                 return EINVAL;
    360         }
    361 
    362         if (list_empty(&hound->sources)) {
    363                 fibril_mutex_unlock(&hound->list_guard);
    364                 log_debug("No sinks available");
    365                 return EINVAL;
    366         }
    367 
    368356        audio_source_t *source =
    369357            audio_source_list_instance(list_first(&hound->sources));
Note: See TracChangeset for help on using the changeset viewer.