Skip to content

rtl8812au_xmit.c : Compiler warns that conditional will always be false #308

@rickhg12hs

Description

@rickhg12hs

Current code that causes warning:

while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == 1) {

Maybe this should be:

while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) != 0) {

... or some other test to see if the bit is set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions