diff options
author | Hugh Dickins <hugh@veritas.com> | 2006-06-23 11:03:45 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 16:42:51 +0200 |
commit | 185606fc6a120dbebffa6d06a559c20ec2b20034 (patch) | |
tree | 6702725dd3da6371d0816dceb1a358a67ae32a99 /ipc/shm.c | |
parent | [PATCH] swapoff: use atomic_inc_not_zero() on mm_users (diff) | |
download | linux-185606fc6a120dbebffa6d06a559c20ec2b20034.tar.xz linux-185606fc6a120dbebffa6d06a559c20ec2b20034.zip |
[PATCH] remove unused o_flags from do_shmat
Remove the unused variable o_flags from do_shmat.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ipc/shm.c b/ipc/shm.c index 4f133d24030f..fe7ae73b6981 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -698,7 +698,6 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) int err; unsigned long flags; unsigned long prot; - unsigned long o_flags; int acc_mode; void *user_addr; @@ -725,11 +724,9 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) if (shmflg & SHM_RDONLY) { prot = PROT_READ; - o_flags = O_RDONLY; acc_mode = S_IRUGO; } else { prot = PROT_READ | PROT_WRITE; - o_flags = O_RDWR; acc_mode = S_IRUGO | S_IWUGO; } if (shmflg & SHM_EXEC) { |