lib: Define OVSP_NONE in a more clear way
[openvswitch] / lib / odp-util.h
index f902b766dd1d8013314a87e9ed1822ace1426699..16f2b156707260c6e720b2c23530d2dda609e888 100644 (file)
@@ -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)