Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c592713b authored by Neil Horman's avatar Neil Horman Committed by Linus Torvalds
Browse files

shm: Remove silly double assignment



Found a silly double assignment of err is do_shmat.  Silly, but good to
clean up the useless code.

Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5e70b7f3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -894,8 +894,6 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
	if (!sfd)
		goto out_put_dentry;

	err = -ENOMEM;

	file = alloc_file(path.mnt, path.dentry, f_mode, &shm_file_operations);
	if (!file)
		goto out_free;