diff options
| -rw-r--r-- | drivers/char/random.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 8258982b49ec..3495d6486b71 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -1051,12 +1051,6 @@ random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) | |||
| 1051 | /* like a named pipe */ | 1051 | /* like a named pipe */ |
| 1052 | } | 1052 | } |
| 1053 | 1053 | ||
| 1054 | /* | ||
| 1055 | * If we gave the user some bytes, update the access time. | ||
| 1056 | */ | ||
| 1057 | if (count) | ||
| 1058 | file_accessed(file); | ||
| 1059 | |||
| 1060 | return (count ? count : retval); | 1054 | return (count ? count : retval); |
| 1061 | } | 1055 | } |
| 1062 | 1056 | ||
| @@ -1116,8 +1110,6 @@ static ssize_t random_write(struct file *file, const char __user *buffer, | |||
| 1116 | if (ret) | 1110 | if (ret) |
| 1117 | return ret; | 1111 | return ret; |
| 1118 | 1112 | ||
| 1119 | inode->i_mtime = current_fs_time(inode->i_sb); | ||
| 1120 | mark_inode_dirty(inode); | ||
| 1121 | return (ssize_t)count; | 1113 | return (ssize_t)count; |
| 1122 | } | 1114 | } |
| 1123 | 1115 | ||
