lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181118234911.17697-1-danielijrobson@gmail.com>
Date:   Sun, 18 Nov 2018 23:49:11 +0000
From:   danielijrobson@...il.com
To:     danielijrobson@...il.com
Cc:     akpm@...ux-foundation.org, dbueso@...e.de,
        manfred@...orfullife.com, ebiederm@...ssion.com,
        mike.kravetz@...cle.com, linux@...inikbrodowski.net,
        viro@...iv.linux.org.uk, ebiggers@...gle.com, arnd@...db.de,
        linux-kernel@...r.kernel.org
Subject: [PATCH] ipc/shm.c: removed 'int err' from shm_get_policy()

From: Daniel Robson <danielijrobson@...il.com>

removed unneeded variable in shm_get_policy()

Signed-off-by: Daniel Robson <danielijrobson@...il.com>
---
 ipc/shm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ipc/shm.c b/ipc/shm.c
index 0842411cb0e9..2cb493214108 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -461,11 +461,10 @@ static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
 {
 	struct file *file = vma->vm_file;
 	struct shm_file_data *sfd = shm_file_data(file);
-	int err = 0;
 
 	if (sfd->vm_ops->set_policy)
-		err = sfd->vm_ops->set_policy(vma, new);
-	return err;
+		return sfd->vm_ops->set_policy(vma, new);
+	return 0;
 }
 
 static struct mempolicy *shm_get_policy(struct vm_area_struct *vma,
-- 
2.18.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ