On 06/28/19 05:57, Gao, Zhichao wrote: > Adjust the code style for better view. > > Cc: Michael D Kinney <michael.d.kin...@intel.com> > Cc: Liming Gao <liming....@intel.com> > Signed-off-by: Zhichao Gao <zhichao....@intel.com> > --- > MdePkg/Library/BaseLib/String.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c > index 32e189791c..b86e7e9436 100644 > --- a/MdePkg/Library/BaseLib/String.c > +++ b/MdePkg/Library/BaseLib/String.c > @@ -1993,8 +1993,7 @@ Base64Decode ( > if (BufferSize < -2) { > return RETURN_INVALID_PARAMETER; > } > - } > - else { > + } else { > Chr = Source[SourceIndex]; > if (BAD_V != DecodingTable[(UINT8) Chr]) { > > @@ -2006,8 +2005,7 @@ Base64Decode ( > return RETURN_INVALID_PARAMETER; > } > ActualSourceLength++; > - } > - else { > + } else { > > // > // The reset of the decoder will ignore all invalid characters > allowed here. > @@ -2029,8 +2027,8 @@ Base64Decode ( > } > > BufferSize += ActualSourceLength / 4 * 3; > - if (BufferSize < 0) { > - return RETURN_INVALID_PARAMETER; > + if (BufferSize < 0) { > + return RETURN_INVALID_PARAMETER; > } > > // > @@ -2061,7 +2059,7 @@ Base64Decode ( > // > for (Index = 0; Index < 4; Index++) { > do { > - Chr = DecodingTable[(UINT8) Source[SourceIndex++]]; > + Chr = DecodingTable[(UINT8) Source[SourceIndex++]]; > } while (Chr == BAD_V); > Value <<= 6; > Value |= (UINT32)Chr; >
Reviewed-by: Laszlo Ersek <ler...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43023): https://edk2.groups.io/g/devel/message/43023 Mute This Topic: https://groups.io/mt/32238988/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-