Reviewed-by: Zhichao Gao <[email protected]>

> -----Original Message-----
> From: Laszlo Ersek [mailto:[email protected]]
> Sent: Wednesday, September 18, 2019 3:49 AM
> To: edk2-devel-groups-io <[email protected]>
> Cc: Carsey, Jaben <[email protected]>; Ni, Ray <[email protected]>;
> Gao, Zhichao <[email protected]>
> Subject: [PATCH 28/35] ShellPkg/UefiShellDriver1CommandsLib: fix
> parameter list typo
> 
> The ShellCommandRunConnect() function passes EFI_HANDLE -- (VOID*) --
> objects to ConvertAndConnectControllers(), and
> ConvertAndConnectControllers() passes those to gBS->OpenProtocol().
> 
> Accordingly, ConvertAndConnectControllers() should specify EFI_HANDLE
> parameter types, not (EFI_HANDLE*) -- (VOID**) -- types.
> 
> This typo is masked because (VOID*) converts to and from any pointer-to-
> object type silently.
> 
> Note that functionally speaking there is no problem, so this patch does not
> change beavior, only cleans up the code.
> 
> Cc: Jaben Carsey <[email protected]>
> Cc: Ray Ni <[email protected]>
> Cc: Zhichao Gao <[email protected]>
> Signed-off-by: Laszlo Ersek <[email protected]>
> ---
> 
> Notes:
>     tested with "connect -r"
> 
>  ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c
> b/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c
> index 359394dfd291..3f4e132674ea 100644
> --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c
> +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c
> @@ -346,8 +346,8 @@ ShellConnectFromDevPaths (  **/  EFI_STATUS
> ConvertAndConnectControllers (
> -  IN EFI_HANDLE     *Handle1 OPTIONAL,
> -  IN EFI_HANDLE     *Handle2 OPTIONAL,
> +  IN EFI_HANDLE     Handle1 OPTIONAL,
> +  IN EFI_HANDLE     Handle2 OPTIONAL,
>    IN CONST BOOLEAN  Recursive,
>    IN CONST BOOLEAN  Output
>    )
> --
> 2.19.1.3.g30247aa5d201
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#48068): https://edk2.groups.io/g/devel/message/48068
Mute This Topic: https://groups.io/mt/34180231/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to