Commit 175e1444 authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: if: Remove net_if_oper_state build assert



Remove the build assert checking if net_if_oper_state is of unsigned
type. It's generating warnings with clang, and in fact isn't very
useful.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent a7c7ed80
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -912,7 +912,6 @@ static inline enum net_if_oper_state net_if_oper_state_set(
		return NET_IF_OPER_UNKNOWN;
	}

	BUILD_ASSERT((enum net_if_oper_state)(-1) > 0 && NET_IF_OPER_UNKNOWN == 0);
	if (oper_state <= NET_IF_OPER_UP) {
		iface->if_dev->oper_state = oper_state;
	}