[edk2-devel] [PATCH EDK2 v1 0/1] MdeModulePkg/FileExplorerLib: remove redundant null pointer check
wenyi,xie via groups.io
xiewenyi2=huawei.com at groups.io
Wed Nov 25 01:52:50 UTC 2020
Main Changes :
Since Info is a pointer of struct EFI_FILE_SYSTEM_VOLUME_LABEL,
and this struct has only one member VolumeLabel which is char
array. So Info and Info->VolumeLabel are point to the same
address, and if Info != NULL, Info->VolumeLabel == NULL is
always false, it's no necessary to do null pointer check again.
Wenyi Xie (1):
MdeModulePkg/FileExplorerLib: remove redundant null pointer check
MdeModulePkg/Library/FileExplorerLib/FileExplorer.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
--
2.20.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67916): https://edk2.groups.io/g/devel/message/67916
Mute This Topic: https://groups.io/mt/78491893/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list