From: Hugh Dickins Date: Fri, 23 Jun 2006 09:03:45 +0000 (-0700) Subject: [PATCH] remove unused o_flags from do_shmat X-Git-Tag: v2.6.18-rc1~1081^2~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=185606fc6a120dbebffa6d06a559c20ec2b20034;p=platform%2Fkernel%2Flinux-3.10.git [PATCH] remove unused o_flags from do_shmat Remove the unused variable o_flags from do_shmat. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/ipc/shm.c b/ipc/shm.c index 4f133d2..fe7ae73 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) {