public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org, outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com, philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] Simplify local variable initialization
Date: Sat,  5 Apr 2025 06:14:47 +0300	[thread overview]
Message-ID: <cover.1743820815.git.karanja99erick@gmail.com> (raw)

This patchset address variable initialization at declaration.
Key consideration that code executed between declaration and
initialization is not necessary for initialization and changes
do not affect the readability of the code.

The patches can be applied in any order.

Erick Karanja (2):
  staging: rtl8723bs: Optimize variable initialization in
    rtl8723b_hal_init.c
  staging: rtl8723bs: Initialize local variables at declaration

 .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 155 +++++-------------
 .../staging/rtl8723bs/hal/rtl8723bs_xmit.c    |  56 ++-----
 2 files changed, 57 insertions(+), 154 deletions(-)

-- 
2.43.0


             reply	other threads:[~2025-04-05  3:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-05  3:14 Erick Karanja [this message]
2025-04-05  3:14 ` [PATCH 1/2] staging: rtl8723bs: Optimize variable initialization in rtl8723b_hal_init.c Erick Karanja
2025-04-05  7:39   ` Greg KH
2025-04-05  8:39     ` Julia Lawall
2025-04-05  8:45   ` Julia Lawall
2025-04-05 10:22     ` Erick Karanja
2025-04-05 10:27       ` Julia Lawall
2025-04-05 10:35         ` Erick Karanja
2025-04-05 10:38           ` Julia Lawall
2025-04-05 14:19   ` Dan Carpenter
2025-04-05 14:28     ` Julia Lawall
2025-04-05 14:43       ` Erick Karanja
2025-04-06  4:11     ` Erick Karanja
2025-04-05  3:14 ` [PATCH 2/2] staging: rtl8723bs: Initialize local variables at declaration Erick Karanja
2025-04-05  7:37   ` Greg KH
2025-04-05  8:41     ` Julia Lawall
2025-04-05 14:21       ` Dan Carpenter

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.1743820815.git.karanja99erick@gmail.com \
    --to=karanja99erick@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=outreachy@lists.linux.dev \
    --cc=philipp.g.hortmann@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox