All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcos Antonio de Jesus Filho <mdejesusfilho@gmail.com>
To: Forest Bond <forest@alittletooquiet.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	outreachy-kernel@googlegroups.com
Subject: [PATCH 0/3] staging: vt6655: Remove else after return
Date: Sat, 31 Oct 2020 02:00:06 -0700	[thread overview]
Message-ID: <cover.1604133727.git.mdejesusfilho@gmail.com> (raw)

This patchset removes multiples useless else statements after return statements. Reported by check patch.

Observation
-----------

After cleaning up the code I noticed that the code from 530 to 548 repeats at 551,569 and that it can be removed and one of the conditional statements can be simplified. 

Marcos Antonio de Jesus Filho (3):
  staging: vt6655: Remove useless else
  staging: vt6655: Remove useless else
  staging: vt6655: Remove useless else

 drivers/staging/vt6655/rxtx.c | 99 ++++++++++++++++++-----------------
 1 file changed, 51 insertions(+), 48 deletions(-)

-- 
2.28.0



             reply	other threads:[~2020-10-31  9:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-31  9:00 Marcos Antonio de Jesus Filho [this message]
2020-10-31  9:00 ` [PATCH 1/3] staging: vt6655: Remove useless else Marcos Antonio de Jesus Filho
2020-10-31  9:01 ` [PATCH 2/3] " Marcos Antonio de Jesus Filho
2020-10-31  9:01 ` [PATCH 3/3] " Marcos Antonio de Jesus Filho
2020-10-31  9:25   ` [Outreachy kernel] " Julia Lawall
2020-10-31  9:28   ` Julia Lawall
2020-10-31 14:48     ` Marcos Antonio de Jesus Filho
2020-10-31  9:37 ` [Outreachy kernel] [PATCH 0/3] staging: vt6655: Remove else after return Julia Lawall
2020-10-31 14:25   ` Marcos Antonio de Jesus Filho
2020-10-31 15:05     ` Julia Lawall

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=cover.1604133727.git.mdejesusfilho@gmail.com \
    --to=mdejesusfilho@gmail.com \
    --cc=forest@alittletooquiet.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=outreachy-kernel@googlegroups.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.