Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <thorsten.blum@toblux.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Thorsten Blum and committed by
David Sterba
112bcd25 431c1646

-2
-2
fs/affs/affs.h
··· 14 14 15 15 /* Ugly macros make the code more pretty. */ 16 16 17 - #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) 18 - #define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey]) 19 17 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) 20 18 21 19 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)