public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* reg: Static Code Analyzer Issues
@ 2021-06-16 13:05 Sivaraman Nainar
  0 siblings, 0 replies; only message in thread
From: Sivaraman Nainar @ 2021-06-16 13:05 UTC (permalink / raw)
  To: devel@edk2.groups.io, maciej.rabeda@intel.com; +Cc: Santhosh Kumar V

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Hello Maciej:

This is regarding the Code analyzer issue reported on the PxeBcDhcp4CallBack() and PxeBcDhcp6CallBack() functions of UEFIPXEBC Driver.

In both the functions the allowed event are Dhcp4RcvdOffer, Dhcp4SelectOffer, Dhcp4SendDiscover, Dhcp4RcvdAck. If any other event comes as input it will exit in beginning itself.


  if ((Dhcp4Event != Dhcp4RcvdOffer) &&

      (Dhcp4Event != Dhcp4SelectOffer) &&

      (Dhcp4Event != Dhcp4SendDiscover) &&

      (Dhcp4Event != Dhcp4RcvdAck)) {

    return EFI_SUCCESS;

Later below switch case handling the default case which is not reachable. This is applicable for both the callback functions.

switch (Dhcp4Event) {



default:

            break;

          }

I assume this code is a not reachable code and can be removed. Please feedback.

-Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

[-- Attachment #2: Type: text/html, Size: 4648 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-16 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-16 13:05 reg: Static Code Analyzer Issues Sivaraman Nainar

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