Changeset 3f1d4d5 in mainline for uspace/lib/virtio/virtio.c


Ignore:
Timestamp:
2018-06-23T19:25:56Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9319b7d
Parents:
5609d3c
Message:

Insist on the specified features

File:
1 edited

Legend:

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

    r5609d3c r3f1d4d5  
    201201
    202202        ddf_msg(LVL_NOTE, "offered features %x", device_features);
     203
     204        if (features != (features & device_features))
     205                return ENOTSUP;
    203206        features &= device_features;
    204 
    205         if (!features)
    206                 return ENOTSUP;
    207207
    208208        /* 4. Write the accepted feature flags */
Note: See TracChangeset for help on using the changeset viewer.