[PATCH] Cleanup in fs_devpts_inode.c
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 26 May 2003 10:00:37 +0000 (03:00 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 26 May 2003 10:00:37 +0000 (03:00 -0700)
From: RenĂ© Scharfe <l.s.r@web.de>

  This un-complicates a small piece of code of the dev/pts filesystem
  and decreases the size of the object code by 8 bytes for my build.

  Yay! :)

fs/devpts/inode.c

index 64a9788..dacf0e2 100644 (file)
@@ -183,9 +183,8 @@ static int __init init_devpts_fs(void)
        err = register_filesystem(&devpts_fs_type);
        if (!err) {
                devpts_mnt = kern_mount(&devpts_fs_type);
-               err = PTR_ERR(devpts_mnt);
-               if (!IS_ERR(devpts_mnt))
-                       err = 0;
+               if (IS_ERR(devpts_mnt))
+                       err = PTR_ERR(devpts_mnt);
        }
        return err;
 }