From 19ca06bb84cafd661f7da34e9ca3c7ec6add1135 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Thu, 19 Jan 2017 10:17:37 +0100 Subject: OvmfPkg: Remove superfluous return statements. If the code eventually returns "Status" anyway, it does not make sense to explicitely return "Status" in case of an error, too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Huth Reviewed-by: Laszlo Ersek --- OvmfPkg/XenBusDxe/XenStore.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'OvmfPkg/XenBusDxe') diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index 1666c4b..76b6e29 100644 --- a/OvmfPkg/XenBusDxe/XenStore.c +++ b/OvmfPkg/XenBusDxe/XenStore.c @@ -1075,9 +1075,6 @@ XenStoreInit ( /* Initialize the shared memory rings to talk to xenstored */ Status = XenStoreInitComms (&xs); - if (EFI_ERROR (Status)) { - return Status; - } return Status; } -- cgit v1.1