Skip to content

Commit

Permalink
fs/select, remove unused macros
Browse files Browse the repository at this point in the history
fs/select, remove unused macros

this is due to preparation for global BIT macro

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
jirislaby authored and Linus Torvalds committed Oct 19, 2007
1 parent bc552f7 commit 1276b10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/select.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,6 @@ static int max_select_fd(unsigned long n, fd_set_bits *fds)
return max;
}

#define BIT(i) (1UL << ((i)&(__NFDBITS-1)))
#define MEM(i,m) ((m)+(unsigned)(i)/__NFDBITS)
#define ISSET(i,m) (((i)&*(m)) != 0)
#define SET(i,m) (*(m) |= (i))

#define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP | POLLERR)
#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT | POLLERR)
#define POLLEX_SET (POLLPRI)
Expand Down

0 comments on commit 1276b10

Please sign in to comment.