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 894 if (!sfd) 895 895 goto out_put_dentry; 896 896 897 - err = -ENOMEM; 898 - 899 897 file = alloc_file(path.mnt, path.dentry, f_mode, &shm_file_operations); 900 898 if (!file) 901 899 goto out_free;