Changeset feeac0d in mainline for uspace/srv/fs/exfat/exfat_ops.c


Ignore:
Timestamp:
2013-09-10T16:32:35Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4982d87
Parents:
e8d6ce2
Message:

Simplify use of list_foreach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_ops.c

    re8d6ce2 rfeeac0d  
    155155static int exfat_node_fini_by_service_id(service_id_t service_id)
    156156{
    157         exfat_node_t *nodep;
    158157        int rc;
    159158
     
    166165restart:
    167166        fibril_mutex_lock(&ffn_mutex);
    168         list_foreach(ffn_list, lnk) {
    169                 nodep = list_get_instance(lnk, exfat_node_t, ffn_link);
     167        list_foreach(ffn_list, ffn_link, exfat_node_t, nodep) {
    170168                if (!fibril_mutex_trylock(&nodep->lock)) {
    171169                        fibril_mutex_unlock(&ffn_mutex);
Note: See TracChangeset for help on using the changeset viewer.