Changeset 3b77628 in mainline for uspace/drv/vhc/devices.c


Ignore:
Timestamp:
2011-01-24T11:58:24Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
afc4fbb
Parents:
0cfc68f0
Message:

Doxygen comment fixes

Mainly proper subgrouping and some missing @param comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/devices.c

    r0cfc68f0 r3b77628  
    5858/** Create virtual device.
    5959 *
    60  * @param address USB address.
    6160 * @param phone Callback phone.
    6261 * @return New device.
    63  * @retval NULL Out of memory or address already occupied.
     62 * @retval NULL Out of memory.
    6463 */
    6564virtdev_connection_t *virtdev_add_device(int phone)
     
    6766        virtdev_connection_t *dev = (virtdev_connection_t *)
    6867            malloc(sizeof(virtdev_connection_t));
     68        if (dev == NULL) {
     69                return NULL;
     70        }
     71
    6972        dev->phone = phone;
    7073        list_append(&dev->link, &devices);
Note: See TracChangeset for help on using the changeset viewer.