mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] mei: remove unnecessary NULL pointer checks
@ 2024-02-29 18:12 Bjorn Helgaas
  2024-02-29 18:12 ` [PATCH 1/3] mei: gsc: " Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2024-02-29 18:12 UTC (permalink / raw)
  To: Tomas Winkler, Arnd Bergmann, Greg Kroah-Hartman
  Cc: linux-kernel, Bjorn Helgaas

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-29 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 18:12 [PATCH 0/3] mei: remove unnecessary NULL pointer checks Bjorn Helgaas
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

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®