The code after the "if" statement is only reachable if the first branch
with the "break" is not taken. Therefore we can move the "else" branch
after the "if" statement, simplifying the code.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
);\r
if (!EFI_ERROR (Status)) {\r
break;\r
- } else if ((Status == EFI_BAD_BUFFER_SIZE) || \r
- (Status == EFI_INVALID_PARAMETER) ||\r
- (Status == EFI_UNSUPPORTED)) {\r
+ }\r
+ if ((Status == EFI_BAD_BUFFER_SIZE) ||\r
+ (Status == EFI_INVALID_PARAMETER) ||\r
+ (Status == EFI_UNSUPPORTED)) {\r
ScsiDeviceFound = FALSE;\r
goto Done;\r
}\r