Skip to content

Commit 2c3d44d

Browse files
namhyungAl Viro
authored and
Al Viro
committed
select: remove unused MAX_SELECT_SECONDS
Remove the leftover from the commit 8ff3e8e ("select: switch select() and poll() over to hrtimers"). Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Arjan van de Ven <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 27a4f7e commit 2c3d44d

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

fs/compat.c

-3
Original file line numberDiff line numberDiff line change
@@ -1671,9 +1671,6 @@ int compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset,
16711671
* Update: ERESTARTSYS breaks at least the xview clock binary, so
16721672
* I'm trying ERESTARTNOHAND which restart only when you want to.
16731673
*/
1674-
#define MAX_SELECT_SECONDS \
1675-
((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1)
1676-
16771674
int compat_core_sys_select(int n, compat_ulong_t __user *inp,
16781675
compat_ulong_t __user *outp, compat_ulong_t __user *exp,
16791676
struct timespec *end_time)

fs/select.c

-3
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,6 @@ int do_select(int n, fd_set_bits *fds, struct timespec *end_time)
517517
* Update: ERESTARTSYS breaks at least the xview clock binary, so
518518
* I'm trying ERESTARTNOHAND which restart only when you want to.
519519
*/
520-
#define MAX_SELECT_SECONDS \
521-
((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1)
522-
523520
int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
524521
fd_set __user *exp, struct timespec *end_time)
525522
{

0 commit comments

Comments
 (0)