diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-11-19 11:06:14 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-11-19 13:32:59 -0800 |
| commit | 7671589afbe5e7ff8a7f2e730ed077416e419fa8 (patch) | |
| tree | 9bbc816402a1aacbe7581e08e7b778940e3c6caa /lib/netdev-linux.c | |
| parent | 9af9e2e8cff919c6053d862703ac228ce1a15bdd (diff) | |
| download | openvswitch-7671589afbe5e7ff8a7f2e730ed077416e419fa8.tar.gz | |
netdev: Really set output values to 0 on failure in netdev_get_features().
The comment on netdev_get_features() claimed that all of the passed-in
values were set to 0 on failure, but the implementation didn't live up
to the promise.
CC: Paul Ingram <paul@nicira.com>
Diffstat (limited to 'lib/netdev-linux.c')
| -rw-r--r-- | lib/netdev-linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 73247030d..3ccd6be93 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -720,8 +720,7 @@ netdev_linux_get_stats(const struct netdev *netdev_, struct netdev_stats *stats) /* Stores the features supported by 'netdev' into each of '*current', * '*advertised', '*supported', and '*peer' that are non-null. Each value is a * bitmap of "enum ofp_port_features" bits, in host byte order. Returns 0 if - * successful, otherwise a positive errno value. On failure, all of the - * passed-in values are set to 0. */ + * successful, otherwise a positive errno value. */ static int netdev_linux_get_features(struct netdev *netdev, uint32_t *current, uint32_t *advertised, |
