All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen.5i5j@gmail.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
	stefanha@redhat.com
Subject: Re: [Qemu-trivial] [PATCH trivial] qemu-img: Remove redundancy "ret = -1"
Date: Thu, 10 Jul 2014 10:33:16 +0800	[thread overview]
Message-ID: <53BDFB6C.8010409@gmail.com> (raw)
In-Reply-To: <53BD4A94.2000300@msgid.tls.msk.ru>


On 07/09/2014 09:58 PM, Michael Tokarev wrote:
> 03.07.2014 17:57, Chen Gang wrote:
>> In this case, 'ret' is already '-1', so need not do it again.
> 
> It's a very minor thing in an error path, maybe compiler even
> eliminates this statement entirely by its own already.
> 

Yeah, normal compiler with -O2, should eliminate it (maybe -O1 also OK).


> Not sure it is worth the effort but applied to the -trivial tree
> anyway, thanks!

For me, '-trivial' means none-urgent, but not mean minor (in fact some
of urgent things are minor), Coding-styles and trying to keep source
code simple are none-urgent, but not minor.

Normal things:

 - None-urgent and none-important things, we need not do -- it is just
   wasting members' time resources.

 - Urgent and none-important things, need process it in time.

 - None-urgent and important things, need process it when have time.

Special things:

 - For urgent and important things which can be separated:

   - need process for its' urgent part in time.

   - and then process for its important part when have time.

 - For urgent and important things which can not be separated:

   - air, water and life are in this case.

   - open, share, and attitude like air, water, and life.

   - God have already blessed, but we need let them better and better.


Welcome any suggestions, discussions and completions.

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed


WARNING: multiple messages have this Message-ID (diff)
From: Chen Gang <gang.chen.5i5j@gmail.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH trivial] qemu-img: Remove redundancy "ret = -1"
Date: Thu, 10 Jul 2014 10:33:16 +0800	[thread overview]
Message-ID: <53BDFB6C.8010409@gmail.com> (raw)
In-Reply-To: <53BD4A94.2000300@msgid.tls.msk.ru>


On 07/09/2014 09:58 PM, Michael Tokarev wrote:
> 03.07.2014 17:57, Chen Gang wrote:
>> In this case, 'ret' is already '-1', so need not do it again.
> 
> It's a very minor thing in an error path, maybe compiler even
> eliminates this statement entirely by its own already.
> 

Yeah, normal compiler with -O2, should eliminate it (maybe -O1 also OK).


> Not sure it is worth the effort but applied to the -trivial tree
> anyway, thanks!

For me, '-trivial' means none-urgent, but not mean minor (in fact some
of urgent things are minor), Coding-styles and trying to keep source
code simple are none-urgent, but not minor.

Normal things:

 - None-urgent and none-important things, we need not do -- it is just
   wasting members' time resources.

 - Urgent and none-important things, need process it in time.

 - None-urgent and important things, need process it when have time.

Special things:

 - For urgent and important things which can be separated:

   - need process for its' urgent part in time.

   - and then process for its important part when have time.

 - For urgent and important things which can not be separated:

   - air, water and life are in this case.

   - open, share, and attitude like air, water, and life.

   - God have already blessed, but we need let them better and better.


Welcome any suggestions, discussions and completions.

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

  reply	other threads:[~2014-07-10  2:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 15:57 [Qemu-trivial] [PATCH trivial] qemu-img: Remove redundancy "ret = -1" Chen Gang
2014-07-03 15:57 ` [Qemu-devel] " Chen Gang
2014-07-09 13:58 ` [Qemu-trivial] " Michael Tokarev
2014-07-09 13:58   ` [Qemu-devel] " Michael Tokarev
2014-07-10  2:33   ` Chen Gang [this message]
2014-07-10  2:33     ` Chen Gang

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=53BDFB6C.8010409@gmail.com \
    --to=gang.chen.5i5j@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=stefanha@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.