[ovs-dev] [netdev 16/27] netdev-linux: Move variable declaration inward in netdev_linux_cache_cb().

Andy Zhou azhou at nicira.com
Mon Aug 5 20:30:24 UTC 2013


Acked-by: Andy Zhou <azhou at nicira.com>


On Thu, Aug 1, 2013 at 2:29 PM, Ben Pfaff <blp at nicira.com> wrote:

> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  lib/netdev-linux.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
> index 29daef8..ba0d863 100644
> --- a/lib/netdev-linux.c
> +++ b/lib/netdev-linux.c
> @@ -537,7 +537,6 @@ static void
>  netdev_linux_cache_cb(const struct rtnetlink_link_change *change,
>                        void *aux OVS_UNUSED)
>  {
> -    struct netdev_linux *dev;
>      if (change) {
>          struct netdev *base_dev = netdev_from_name(change->ifname);
>          if (base_dev &&
> is_netdev_linux_class(netdev_get_class(base_dev))) {
> @@ -551,10 +550,9 @@ netdev_linux_cache_cb(const struct
> rtnetlink_link_change *change,
>          netdev_get_devices(&netdev_linux_class, &device_shash);
>          SHASH_FOR_EACH (node, &device_shash) {
>              struct netdev *netdev = node->data;
> +            struct netdev_linux *dev = netdev_linux_cast(netdev);
>              unsigned int flags;
>
> -            dev = netdev_linux_cast(netdev);
> -
>              get_flags(&dev->up, &flags);
>              netdev_linux_changed(dev, flags, 0);
>          }
> --
> 1.7.10.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130805/4b6eef9e/attachment-0003.html>


More information about the dev mailing list