Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Neil Horman and committed by
Linus Torvalds
c592713b 5e70b7f3

-2
-2
ipc/shm.c
··· 894 if (!sfd) 895 goto out_put_dentry; 896 897 - err = -ENOMEM; 898 - 899 file = alloc_file(path.mnt, path.dentry, f_mode, &shm_file_operations); 900 if (!file) 901 goto out_free;
··· 894 if (!sfd) 895 goto out_put_dentry; 896 897 file = alloc_file(path.mnt, path.dentry, f_mode, &shm_file_operations); 898 if (!file) 899 goto out_free;