netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][mwifiex] fix braino in mwifiex_fw_dump_info_event()
@ 2018-08-04 21:36 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2018-08-04 21:36 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Xinming Hu

	... and on little-endian host it even worked ;-)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_event.c b/drivers/net/wireless/marvell/mwifiex/sta_event.c
index 03a6492662ca..1cd42a6a25c9 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_event.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_event.c
@@ -631,7 +631,7 @@ mwifiex_fw_dump_info_event(struct mwifiex_private *priv,
 		adapter->event_skb->data, event_skb->len);
 	adapter->devdump_len += event_skb->len;
 
-	if (le16_to_cpu(fw_dump_hdr->type == FW_DUMP_INFO_ENDED)) {
+	if (le16_to_cpu(fw_dump_hdr->type) == FW_DUMP_INFO_ENDED) {
 		mwifiex_dbg(adapter, MSG,
 			    "receive end of transmission flag event!\n");
 		goto upload_dump;

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

only message in thread, other threads:[~2018-08-04 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-04 21:36 [PATCH][mwifiex] fix braino in mwifiex_fw_dump_info_event() Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).