]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/efsys.h
net/sfc: fix align to power of 2 when align has smaller type
[dpdk.git] / drivers / net / sfc / efsys.h
index 4c122d040bc09a809b7b2d99876fbbb7c9c8ae79..79fd3c144d0f085f938c3c235f49f534387164c1 100644 (file)
@@ -76,10 +76,6 @@ typedef bool boolean_t;
 #define IS_P2ALIGNED(v, a)     ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0)
 #endif
 
-#ifndef P2ALIGN
-#define P2ALIGN(_x, _a)                ((_x) & -(_a))
-#endif
-
 #ifndef ISP2
 #define ISP2(x)                        rte_is_power_of_2(x)
 #endif