Changeset 20840922 in mainline


Ignore:
Timestamp:
2012-08-20T09:51:03Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
018ab50
Parents:
ad1aedc
Message:

libdrv, audio: Calling get_info_str makes no sense with NULL param.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_audio_pcm.c

    rad1aedc r20840922  
    113113int audio_pcm_get_info_str(audio_pcm_sess_t *sess, const char **name)
    114114{
     115        if (!name)
     116                return EINVAL;
    115117        async_exch_t *exch = async_exchange_begin(sess);
    116118        sysarg_t name_size;
     
    118120            DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE),
    119121            IPC_M_AUDIO_PCM_GET_INFO_STR, &name_size);
    120         if (ret == EOK && name) {
     122        if (ret == EOK) {
    121123                char *name_place = calloc(1, name_size);
    122124                if (!name_place) {
Note: See TracChangeset for help on using the changeset viewer.