linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "René Scharfe" <l.s.r@web.de>
To: linux-kernel@vger.kernel.org
Cc: trivial@rustcorp.com.au
Subject: [TRIVIAL] Cleanup in fs/devpts/inode.c
Date: Sat, 29 Mar 2003 19:26:16 +0100	[thread overview]
Message-ID: <20030329192616.72a397a4.l.s.r@web.de> (raw)

Hi,

this patch 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! :)

René


--- linux-2.5.66/fs/devpts/inode.c.orig	2003-01-17 13:54:26.000000000 +0100
+++ linux-2.5.66/fs/devpts/inode.c	2003-03-22 14:09:40.000000000 +0100
@@ -170,9 +170,8 @@
 	int 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;
 }

             reply	other threads:[~2003-03-29 18:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-29 18:26 René Scharfe [this message]
2003-03-29 18:29 ` [TRIVIAL] Cleanup in fs/devpts/inode.c john
2003-03-29 18:36   ` Robert P. J. Day
2003-03-29 19:12   ` Robert Love
2003-03-29 20:00   ` Felipe Alfaro Solana
2003-03-29 20:14   ` Alex Bligh - linux-kernel
2003-03-29 21:39     ` john

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030329192616.72a397a4.l.s.r@web.de \
    --to=l.s.r@web.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).