diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-11-10 03:16:27 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-11-10 03:16:27 -0500 |
| commit | 4ecd33d930591d41fe356160593a9076467b961c (patch) | |
| tree | b9051a334540bbce38db1b2b03cebb4cf1d51f73 /drivers/char/random.c | |
| parent | 7d5a78cd98c3a5eb83bd6a061c5ea6ef1e9b8fcb (diff) | |
| parent | f7160c7573615ec82c691e294cf80d920b5d588d (diff) | |
Merge commit 'v2.6.28-rc4' into x86/apic
Diffstat (limited to 'drivers/char/random.c')
| -rw-r--r-- | drivers/char/random.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 705a839f1796..675076f5fca8 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -1139,18 +1139,12 @@ static int random_fasync(int fd, struct file *filp, int on) | |||
| 1139 | return fasync_helper(fd, filp, on, &fasync); | 1139 | return fasync_helper(fd, filp, on, &fasync); |
| 1140 | } | 1140 | } |
| 1141 | 1141 | ||
| 1142 | static int random_release(struct inode *inode, struct file *filp) | ||
| 1143 | { | ||
| 1144 | return fasync_helper(-1, filp, 0, &fasync); | ||
| 1145 | } | ||
| 1146 | |||
| 1147 | const struct file_operations random_fops = { | 1142 | const struct file_operations random_fops = { |
| 1148 | .read = random_read, | 1143 | .read = random_read, |
| 1149 | .write = random_write, | 1144 | .write = random_write, |
| 1150 | .poll = random_poll, | 1145 | .poll = random_poll, |
| 1151 | .unlocked_ioctl = random_ioctl, | 1146 | .unlocked_ioctl = random_ioctl, |
| 1152 | .fasync = random_fasync, | 1147 | .fasync = random_fasync, |
| 1153 | .release = random_release, | ||
| 1154 | }; | 1148 | }; |
| 1155 | 1149 | ||
| 1156 | const struct file_operations urandom_fops = { | 1150 | const struct file_operations urandom_fops = { |
| @@ -1158,7 +1152,6 @@ const struct file_operations urandom_fops = { | |||
| 1158 | .write = random_write, | 1152 | .write = random_write, |
| 1159 | .unlocked_ioctl = random_ioctl, | 1153 | .unlocked_ioctl = random_ioctl, |
| 1160 | .fasync = random_fasync, | 1154 | .fasync = random_fasync, |
| 1161 | .release = random_release, | ||
| 1162 | }; | 1155 | }; |
| 1163 | 1156 | ||
| 1164 | /*************************************************************** | 1157 | /*************************************************************** |
