]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 15 Aug 2024 21:35:01 +0000 (23:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 Sep 2024 15:48:14 +0000 (17:48 +0200)
The macros GET_END_PTR() and AFFS_GET_HASHENTRY() are not used anymore
and can be removed. Remove them.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/affs/affs.h

index 2e612834329ac127ae6e63d802a7b31b89558b0c..e8c2c4535cb37cf646ec9b72ee569c615c6c0dc0 100644 (file)
@@ -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)