[ovs-dev] [PATCH] lib: Define OVSP_NONE in a more clear way

Zoltan Kiss zoltan.kiss at citrix.com
Thu Jul 12 17:24:17 UTC 2012


The value represented by the macro would stay exactly the same, just become obvious.

Signed-off-by: Zoltan Kiss <zoltan.kiss at citrix.com>
---
 lib/odp-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/odp-util.h b/lib/odp-util.h
index f902b76..16f2b15 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -32,7 +32,7 @@ struct nlattr;
 struct ofpbuf;
 struct simap;
 
-#define OVSP_NONE ((uint16_t) -1)
+#define OVSP_NONE UINT16_MAX
 
 static inline uint16_t
 ofp_port_to_odp_port(uint16_t ofp_port)
-- 
1.7.0.4




More information about the dev mailing list