public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Refactor DiscoverScsiDevice()
@ 2023-01-31  6:03 Yuan Yu
  2023-01-31  6:03 ` [PATCH v2 1/1] MdeModulePkg: ScsiBusDxe: " Yuan Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Yuan Yu @ 2023-01-31  6:03 UTC (permalink / raw)
  To: devel

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


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

end of thread, other threads:[~2023-02-02  2:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-31  6:03 [PATCH v2 0/1] Refactor DiscoverScsiDevice() Yuan Yu
2023-01-31  6:03 ` [PATCH v2 1/1] MdeModulePkg: ScsiBusDxe: " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox