Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NDIS_STATUS
- Hw11QueryDiversitySelectionRX(
- _In_ PHW_MAC_CONTEXT HwMac,
- _In_ BOOLEAN SelectedPhy,
- _In_ ULONG MaxEntries,
- _Out_ PDOT11_DIVERSITY_SELECTION_RX_LIST
- Dot11DiversitySelectionRXList
- )
- {
- //
- // Determine the PHY that the user wants to query
- //
- if (SelectedPhy)
- return HwQueryDiversitySelectionRX(HwMac->Hw,
- HwMac->SelectedPhyId,
- MaxEntries,
- Dot11DiversitySelectionRXList
- );
- else
- return HwQueryDiversitySelectionRX(HwMac->Hw,
- HwMac->SelectedPhyId,
- MaxEntries,
- Dot11DiversitySelectionRXList
- );
- }
- This suspicious code was found in DDKSamples project by PVS-Studio static code analyzer.
- Warning message is:
- V523 The 'then' statement is equivalent to the 'else' statement. hw_oids.c 1043
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment