Messages in this thread Patch in this message | | | Date | Fri, 26 May 2006 19:31:05 +0100 (BST) | From | Hugh Dickins <> | Subject | [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> --- 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) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |