Browse Source

Here is a very small patch to remove compiler warning in function
"LibLocateHandleByDiskSignature()" because the "Start" variable is
give a value which is not used.

Signed-off-by: Bernard Burette <bub75@users.sf.net>
Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>

Nigel Croxon 11 năm trước cách đây
mục cha
commit
6a0875ca2f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      gnu-efi-3.0/lib/event.c

+ 2 - 1
gnu-efi-3.0/lib/event.c

@@ -43,6 +43,7 @@ LibCreateProtocolNotifyEvent (
 		    NotifyContext,
 		    &Event
 		    );
+    if ( EFI_ERROR( Status ) ) return NULL ;
     ASSERT (!EFI_ERROR(Status));
 
     //
@@ -56,7 +57,7 @@ LibCreateProtocolNotifyEvent (
                     Event, 
                     Registration
                     );
-
+    if ( EFI_ERROR( Status ) ) return NULL ;
     ASSERT (!EFI_ERROR(Status));
 
     //