Skip to content

Commit

Permalink
affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
toblux authored and kdave committed Sep 6, 2024
1 parent 431c164 commit 112bcd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/affs/affs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 112bcd2

Please sign in to comment.