Changeset 31cf8c3c in mainline for uspace/lib/virtio/virtio.c


Ignore:
Timestamp:
2018-05-23T21:22:27Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cede6f8
Parents:
9af56b6
git-author:
Jakub Jermar <jakub@…> (2018-05-23 21:22:24)
git-committer:
Jakub Jermar <jakub@…> (2018-05-23 21:22:27)
Message:

Do not zero-initialize the descriptor table twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio.c

    r9af56b6 r31cf8c3c  
    115115
    116116        /*
    117          * Initialize the descriptor table
    118          */
    119         for (unsigned i = 0; i < size; i++) {
    120                 q->desc[i].addr = 0;
    121                 q->desc[i].len = 0;
    122                 q->desc[i].flags = 0;
    123         }
    124 
    125         /*
    126117         * Write the configured addresses to device's common config
    127118         */
Note: See TracChangeset for help on using the changeset viewer.