diff options
Diffstat (limited to 'fs/utimes.c')
-rw-r--r-- | fs/utimes.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/utimes.c b/fs/utimes.c index 14d3edbb3d7c..d466bc587e6e 100644 --- a/fs/utimes.c +++ b/fs/utimes.c | |||
@@ -173,14 +173,6 @@ asmlinkage long sys_utimensat(int dfd, char __user *filename, struct timespec __ | |||
173 | if (utimes) { | 173 | if (utimes) { |
174 | if (copy_from_user(&tstimes, utimes, sizeof(tstimes))) | 174 | if (copy_from_user(&tstimes, utimes, sizeof(tstimes))) |
175 | return -EFAULT; | 175 | return -EFAULT; |
176 | if ((tstimes[0].tv_nsec == UTIME_OMIT || | ||
177 | tstimes[0].tv_nsec == UTIME_NOW) && | ||
178 | tstimes[0].tv_sec != 0) | ||
179 | return -EINVAL; | ||
180 | if ((tstimes[1].tv_nsec == UTIME_OMIT || | ||
181 | tstimes[1].tv_nsec == UTIME_NOW) && | ||
182 | tstimes[1].tv_sec != 0) | ||
183 | return -EINVAL; | ||
184 | 176 | ||
185 | /* Nothing to do, we must not even check the path. */ | 177 | /* Nothing to do, we must not even check the path. */ |
186 | if (tstimes[0].tv_nsec == UTIME_OMIT && | 178 | if (tstimes[0].tv_nsec == UTIME_OMIT && |