From: Thorsten Blum Date: Thu, 15 Aug 2024 21:35:01 +0000 (+0200) Subject: affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY X-Git-Tag: v6.12-rc1~208^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=112bcd25980e0568e5154837c03b534afb31cc39;p=thirdparty%2Fkernel%2Flinux.git affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY The macros GET_END_PTR() and AFFS_GET_HASHENTRY() are not used anymore and can be removed. Remove them. Signed-off-by: Thorsten Blum Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 2e612834329ac..e8c2c4535cb37 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h @@ -14,8 +14,6 @@ /* Ugly macros make the code more pretty. */ -#define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) -#define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey]) #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)