mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Tomas Winkler <tomas.winkler@intel.com>,
	Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>
Subject: [PATCH 0/3] mei: remove unnecessary NULL pointer checks
Date: Thu, 29 Feb 2024 12:12:57 -0600	[thread overview]
Message-ID: <20240229181300.352077-1-helgaas@kernel.org> (raw)

From: Bjorn Helgaas <bhelgaas@google.com>

After .probe() has returned success, drvdata has been set to a non-NULL
value, so there's no need to check for NULL in other callbacks.

Bjorn Helgaas (3):
  mei: gsc: remove unnecessary NULL pointer checks
  mei: txe: remove unnecessary NULL pointer checks
  mei: me: remove unnecessary NULL pointer checks

 drivers/misc/mei/gsc-me.c  | 17 ----------------
 drivers/misc/mei/pci-me.c  | 38 ++++++------------------------------
 drivers/misc/mei/pci-txe.c | 40 ++++++--------------------------------
 3 files changed, 12 insertions(+), 83 deletions(-)

-- 
2.34.1


             reply	other threads:[~2024-02-29 18:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 18:12 Bjorn Helgaas [this message]
2024-02-29 18:12 ` [PATCH 1/3] mei: gsc: " Bjorn Helgaas
2024-02-29 18:12 ` [PATCH 2/3] mei: txe: " Bjorn Helgaas
2024-02-29 18:13 ` [PATCH 3/3] mei: me: " Bjorn Helgaas

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=20240229181300.352077-1-helgaas@kernel.org \
    --to=helgaas@kernel.org \
    --cc=arnd@arndb.de \
    --cc=bhelgaas@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tomas.winkler@intel.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

all inboxes | Powered by JetHome®