public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yuan Yu" <yuanyu@google.com>
To: devel@edk2.groups.io
Subject: [PATCH v2 0/1] Refactor DiscoverScsiDevice()
Date: Mon, 30 Jan 2023 22:03:46 -0800	[thread overview]
Message-ID: <20230131060347.99785-1-yuanyu@google.com> (raw)

Refactor DiscoverScsiDevice() so that it returns EFI_STATUS instead of
BOOLEAN. This will enable its callers to distinguish a "not found"
situation from real problems like memory allocation failures.

The changes can be seen at:
https://github.com/yyu/edk2/tree/scsi_bus_fix_v2

Yuan Yu (1):
  MdeModulePkg: ScsiBusDxe: Refactor DiscoverScsiDevice()

 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h | 10 ++++---
 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c | 30 ++++++++++----------
 2 files changed, 21 insertions(+), 19 deletions(-)

-- 
2.39.1.456.gfc5497dd1b-goog


             reply	other threads:[~2023-01-31  6:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-31  6:03 Yuan Yu [this message]
2023-01-31  6:03 ` [PATCH v2 1/1] MdeModulePkg: ScsiBusDxe: Refactor DiscoverScsiDevice() Yuan Yu
2023-02-01  6:48   ` Wu, Hao A
2023-02-01 18:16     ` Yuan Yu
2023-02-02  2:01       ` Wu, Hao A

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-list 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=20230131060347.99785-1-yuanyu@google.com \
    --to=devel@edk2.groups.io \
    /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