summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif-mirror.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-12-18 09:20:49 -0800
committerBen Pfaff <blp@nicira.com>2013-12-18 15:43:43 -0800
commit4b6ab2b0ae49194e4ff78cc005921286aa9be140 (patch)
tree9c0403b8c3dbc8d9f1175a6117f30ab0ab52561d /ofproto/ofproto-dpif-mirror.h
parentd893c3e0afe2e337d4399bbea20970de1a06cf6b (diff)
downloadopenvswitch-4b6ab2b0ae49194e4ff78cc005921286aa9be140.tar.gz
ofproto-dpif: Get rid of mirror_mask_ffs() function.
There's no need for it because we have the equivalent (actually more convenient) function raw_ctz(), which works with any integer type. Signed-off-by: Ben Pfaff <blp@nicira.com> CC: Alin Serdean <aserdean@cloudbasesolutions.com> CC: Gurucharan Shetty <shettyg@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif-mirror.h')
-rw-r--r--ofproto/ofproto-dpif-mirror.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/ofproto/ofproto-dpif-mirror.h b/ofproto/ofproto-dpif-mirror.h
index 4a6f3cebd..64c456123 100644
--- a/ofproto/ofproto-dpif-mirror.h
+++ b/ofproto/ofproto-dpif-mirror.h
@@ -52,10 +52,4 @@ bool mirror_get(struct mbridge *, int index, unsigned long **vlans,
mirror_mask_t *dup_mirrors, struct ofbundle **out,
int *out_vlan);
-static inline int
-mirror_mask_ffs(mirror_mask_t mask)
-{
- BUILD_ASSERT_DECL(sizeof(unsigned int) >= sizeof(mask));
- return ffs(mask);
-}
#endif /* ofproto-dpif-mirror.h */