Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce023202 authored by Jannik Becher's avatar Jannik Becher Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: used a better macro



Fixed a sparse warning.
Using be16_to_cpus() to avoid double assignment.

Signed-off-by: default avatarJannik Becher <becher.jannik@gmail.com>
Tested-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 16b8852f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter,
		/* get ether_type */
		ptr = ptr + pfhdr->attrib.hdrlen + LLC_HEADER_SIZE;
		memcpy(&ether_type, ptr, 2);
		ether_type = ntohs((unsigned short)ether_type);
		be16_to_cpus(&ether_type);

		if ((psta != NULL) && (psta->ieee8021x_blocked)) {
			/* blocked