omit redundant code
This commit is contained in:
@@ -333,7 +333,6 @@ void L2_FrameStateUpdate(L2_INST *instPtr)
|
|||||||
PHY_INST *phyRef = instPtr->config.phyInstPtr;
|
PHY_INST *phyRef = instPtr->config.phyInstPtr;
|
||||||
bool isValid;
|
bool isValid;
|
||||||
L2_FRAME_TYPE recvType = L2_GetLastOptFrameType(instPtr);
|
L2_FRAME_TYPE recvType = L2_GetLastOptFrameType(instPtr);
|
||||||
L2_FRAME_TYPE sendType = L2_GetNextFrameType(instPtr);
|
|
||||||
// Update frame state.
|
// Update frame state.
|
||||||
if (Phy_IsFrameValid(phyRef) == false)
|
if (Phy_IsFrameValid(phyRef) == false)
|
||||||
{
|
{
|
||||||
@@ -347,7 +346,6 @@ void L2_FrameStateUpdate(L2_INST *instPtr)
|
|||||||
instPtr->log.frameRecv++;
|
instPtr->log.frameRecv++;
|
||||||
|
|
||||||
// Update frame state.
|
// Update frame state.
|
||||||
// FIXME: add log
|
|
||||||
switch (recvType)
|
switch (recvType)
|
||||||
{
|
{
|
||||||
case L2_SCAN_FRAME:
|
case L2_SCAN_FRAME:
|
||||||
|
|||||||
Reference in New Issue
Block a user