From 31a1e58ec7236b915cd9b49d9e927ad90b5ae285 Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Thu, 12 Jul 2012 18:24:17 +0100 Subject: [PATCH] lib: Define OVSP_NONE in a more clear way The value represented by the macro would stay exactly the same, just become obvious. Signed-off-by: Zoltan Kiss Signed-off-by: Ben Pfaff --- lib/odp-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/odp-util.h b/lib/odp-util.h index f902b766d..16f2b1567 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) -- 2.43.0