Commit c592713b3e124ce0719e6af4bc2520424c49cbae

Authored by Neil Horman
Committed by Linus Torvalds
1 parent 5e70b7f3c2

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -894,8 +894,6 @@
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;