[ovs-git] [openvswitch/ovs] 6c52e6: ofp-print: Fix redundant expression.

GitHub noreply at github.com
Tue Aug 25 00:36:30 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6c52e6d8c0e54f1876502bda9aeffd20b85f5cde
      https://github.com/openvswitch/ovs/commit/6c52e6d8c0e54f1876502bda9aeffd20b85f5cde
  Author: Joe Stringer <joestringer at nicira.com>
  Date:   2015-08-24 (Mon, 24 Aug 2015)

  Changed paths:
    M lib/ofp-print.c

  Log Message:
  -----------
  ofp-print: Fix redundant expression.

'features' is always a valid pointer to something on the stack, so
checking (!features || ...) is the same as checking (false || ...).
Simplify the expression.

Found by MIT STACK undefined behaviour checker.

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




More information about the git mailing list