mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Felipe Alfaro Solana <felipe_alfaro@linuxmail.org>
To: john@grabjohn.com
Cc: "René Scharfe" <l.s.r@web.de>,
	LKML <linux-kernel@vger.kernel.org>,
	trivial@rustcorp.com.au
Subject: Re: [TRIVIAL] Cleanup in fs/devpts/inode.c
Date: 29 Mar 2003 21:00:24 +0100	[thread overview]
Message-ID: <1048968024.600.19.camel@teapot> (raw)
In-Reply-To: <200303291829.h2TITPPi000418@81-2-122-30.bradfords.org.uk>

On Sat, 2003-03-29 at 19:29, john@grabjohn.com wrote:
> > 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! :)
> 
> > -		err = PTR_ERR(devpts_mnt);
> > -		if (!IS_ERR(devpts_mnt))
> > -			err = 0;
> > +		if (IS_ERR(devpts_mnt))
> > +			err = PTR_ERR(devpts_mnt);
> 
> Why not use
> 
> err = (IS_ERR(devpts_mnt) ? err = 0 : PTR_ERR(devpts_mnt));

Ugg! That's really ugly! ;-)

________________________________________________________________________
        Felipe Alfaro Solana
   Linux Registered User #287198
http://counter.li.org


  parent reply	other threads:[~2003-03-29 19:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-29 18:26 René Scharfe
2003-03-29 18:29 ` 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 [this message]
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=1048968024.600.19.camel@teapot \
    --to=felipe_alfaro@linuxmail.org \
    --cc=john@grabjohn.com \
    --cc=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

all inboxes | Powered by JetHome®