[ovs-git] [openvswitch/ovs] 8cb277: lldp: Fix clang warning.

GitHub noreply at github.com
Thu May 7 19:52:50 UTC 2015

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8cb277fc37a42184a931f83c3dbc7681090ed6c5
  Author: Joe Stringer <joestringer at nicira.com>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    M lib/ovs-lldp.c

  Log Message:
  lldp: Fix clang warning.

Clang-3.7 generates warnings such as the following:
../lib/ovs-lldp.c:394:19: error: address of array 'hardware->h_ifname'
will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]

This value is fetched from a netdev, which as far as I can tell must
always have a non-NULL name. Simplify this code.

Signed-off-by: Joe Stringer <joestringer at nicira.com>
Acked-by: Dennis Flynn <drflynn at avaya.com>
Acked-by: Ben Pfaff <blp at nicira.com>

More information about the git mailing list