From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) by mx.groups.io with SMTP id smtpd.web10.6264.1675145029871504314 for ; Mon, 30 Jan 2023 22:03:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=IYednHEY; spf=pass (domain: flex--yuanyu.bounces.google.com, ip: 209.85.215.202, mailfrom: 3ra_yywykbswgcivgcowwotm.kwulmdmtmlsk.ozwcxa.qw@flex--yuanyu.bounces.google.com) Received: by mail-pg1-f202.google.com with SMTP id 127-20020a630685000000b004ec5996dcc0so1263221pgg.8 for ; Mon, 30 Jan 2023 22:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=wtTfM2ahzt39fCcCu7OWCsPacG3ztU5b17aw/mb5boo=; b=IYednHEYNgo0NSXe0fja57fEWK8bKzLAkNMEurkE9wPJQ70twVDq8fKKQbzqVTXxiJ mz63kGT+BHlCmgiX3RtYiABXOKO1NTMo1kKc2X0L5GOX9/WMhejQlJqCQ/aGneQRJhZ+ Q1UsFUF3gRILIflvbPgsJuEFnmunlfXTlHZnDQkZPEg5vv8l03N1w/JmMwo2wSqSenGA U9ldHEFJYXwMMm5ZTpDGrV35RgzyvCzxAbGZKAMfo6MlnYmb2+JxDxQbzYzfjKhN3gXl M7NikgyBiezzIrj0wpbJpcOpsPKR2NZVWEIvXjecdHfAGXXyyVi9eo8l4+saE4k0TN75 r2LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wtTfM2ahzt39fCcCu7OWCsPacG3ztU5b17aw/mb5boo=; b=6wnGRtwZs23DyUddNFq45AKgCSk3BVxiFheje2ppXeGWLKL4uMqSn8RloRot7cruZu 06WZpXaJMOfI3o1fTxBbejG/+uG3jjOyAfz4Hk+o6HA9N7CTjGxZOrKlY6KJ+THuPOBq I0xdpqlaZi4QXeZqij0O16S5FKGNMEcXZb6DfHdV3ISrBTv+/HUzgWUQnefMf0aIxwPZ ukxwyCClmH+53vFSnqYVEc3OKEH8VsdKLJq1nhxUK+HFcibpmt1ZuWWt/fWOj+5RlF2h GnIkhp1rgDb6AXCdaZLPgKadl5yRksU8zh9/koG2qwV8QlXox4jyGbUx4LkZR2aqmS/y 2CeA== X-Gm-Message-State: AFqh2kr5Ts1Oh7uAwtMtGl/mEEFzWYksw2aJtYs5Voo5wgVxxhDohTYb 13OvyfDy/VeB3c/eDOee2ZH1twwyMJH5oQoFGZ9nDthv9teHE3RDNKJebd/qMKNF+mtkE9ZI4qp Aoxi7No82FwUqmuUi/UFK6sKN+9g+SCpx5JTeJdWbCp/i/cvO6ImtFmtWrKY= X-Google-Smtp-Source: AMrXdXsUYfxEdeub8kI36ILaos+VwgQix1du91Vuqyh6Ylh0Wc+reCFC2z1UmA1QJVMi5bxT95bmHJgshp0= X-Received: from yuanyu.kir.corp.google.com ([2620:15c:29:204:60e3:dc53:1e92:62f7]) (user=yuanyu job=sendgmr) by 2002:a17:90a:1a0c:b0:229:3d15:4148 with SMTP id 12-20020a17090a1a0c00b002293d154148mr8280377pjk.124.1675145029068; Mon, 30 Jan 2023 22:03:49 -0800 (PST) Date: Mon, 30 Jan 2023 22:03:46 -0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog Message-ID: <20230131060347.99785-1-yuanyu@google.com> Subject: [PATCH v2 0/1] Refactor DiscoverScsiDevice() From: "Yuan Yu" To: devel@edk2.groups.io Content-Type: text/plain; charset="UTF-8" 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