* [PATCH] remove unused o_flags from do_shmat
@ 2006-05-26 18:31 Hugh Dickins
0 siblings, 0 replies; only message in thread
From: Hugh Dickins @ 2006-05-26 18:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Remove the unused variable o_flags from do_shmat.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
---
ipc/shm.c | 3 ---
1 file changed, 3 deletions(-)
--- 2.6.17-rc5/ipc/shm.c 2006-05-25 03:43:36.000000000 +0100
+++ linux/ipc/shm.c 2006-05-26 17:55:29.000000000 +0100
@@ -698,7 +698,6 @@ long do_shmat(int shmid, char __user *sh
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 *sh
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-26 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-26 18:31 [PATCH] remove unused o_flags from do_shmat Hugh Dickins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®