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/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-