From be589a1fd4d8dfba2d16f8e62bb7e63e114ec16f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 20 Dec 2018 10:01:03 +0100 Subject: [PATCH] lib:util: Remove unused ALIGN marcos from byteorder.h Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- lib/util/byteorder.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h index 8656035693d..3933926cf54 100644 --- a/lib/util/byteorder.h +++ b/lib/util/byteorder.h @@ -179,11 +179,6 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #define RSBVAL(buf,pos,val) SBVAL(buf,pos,BREV(val)) #define RSBVALS(buf,pos,val) SBVALS(buf,pos,BREV(val)) -/* Alignment macros. */ -#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3)) -#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1)) - - /* macros for accessing SMB protocol elements */ #define VWV(vwv) ((vwv)*2) -- 2.34.1