Skip to content

Commit

Permalink
[PATCH] remove unused o_flags from do_shmat
Browse files Browse the repository at this point in the history
Remove the unused variable o_flags from do_shmat.

Signed-off-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Jun 23, 2006
1 parent 70af7c5 commit 185606f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit 185606f

Please sign in to comment.