OSDN Git Service

brcmfmac: Delete redundant length check
authorKevin Cernekee <cernekee@chromium.org>
Sun, 17 Sep 2017 04:08:23 +0000 (21:08 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 2 Oct 2017 14:07:00 +0000 (17:07 +0300)
commita7c9acc452b21b56c99dd7dfe0ab542f7baa6563
treecc2ff94d10a52bd61eb418dc4fec5b782d0e78e0
parent73f2c8e933b1dcf432ac8c6965a6e67af630077f
brcmfmac: Delete redundant length check

brcmf_fweh_process_event() sets event->datalen to the
endian-swapped value of event_packet->msg.datalen, which is the
same as emsg.datalen.  This length is already validated in
brcmf_fweh_process_event(), so there is no need to check it
again upon dequeuing the event.

Suggested-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c