From: Hugh Dickins Remove the unused variable o_flags from do_shmat. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton --- ipc/shm.c | 3 --- 1 files changed, 3 deletions(-) diff -puN ipc/shm.c~remove-unused-o_flags-from-do_shmat ipc/shm.c --- 25/ipc/shm.c~remove-unused-o_flags-from-do_shmat Fri May 26 14:27:45 2006 +++ 25-akpm/ipc/shm.c Fri May 26 14:27:45 2006 @@ -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) { _