Skip to content

Commit

Permalink
shm: Remove silly double assignment
Browse files Browse the repository at this point in the history
Found a silly double assignment of err is do_shmat.  Silly, but good to
clean up the useless code.

Signed-off-by: Neil Horman <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
nhorman authored and torvalds committed Jun 10, 2008
1 parent 5e70b7f commit c592713
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c592713

Please sign in to comment.