public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH EDK2 v1 0/1] MdeModulePkg/FileExplorerLib: remove redundant null pointer check
@ 2020-11-25  1:52 wenyi,xie
  2020-11-25  1:52 ` [PATCH EDK2 v1 1/1] " wenyi,xie
  0 siblings, 1 reply; 5+ messages in thread
From: wenyi,xie @ 2020-11-25  1:52 UTC (permalink / raw)
  To: devel, jian.j.wang, hao.a.wu, dandan.bi, eric.dong
  Cc: songdongkuang, xiewenyi2

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-26  1:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-25  1:52 [PATCH EDK2 v1 0/1] MdeModulePkg/FileExplorerLib: remove redundant null pointer check wenyi,xie
2020-11-25  1:52 ` [PATCH EDK2 v1 1/1] " wenyi,xie
2020-11-25  3:26   ` 回复: [edk2-devel] " gaoliming
2020-11-25 15:01   ` Laszlo Ersek
2020-11-26  1:33     ` wenyi,xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox