Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 19:28:19 +0000 (UTC)
From:      Rink Springer <rink@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184658 - head/sys/dev/usb2/wlan
Message-ID:  <200811041928.mA4JSJsM005883@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rink
Date: Tue Nov  4 19:28:19 2008
New Revision: 184658
URL: http://svn.freebsd.org/changeset/base/184658

Log:
  Fix the build (on at least powerpc) by moving the htole16() from the case(x) expression directly to the switch(x) itself.
  
  Reviewed by:	imp@

Modified:
  head/sys/dev/usb2/wlan/if_zyd2.c

Modified: head/sys/dev/usb2/wlan/if_zyd2.c
==============================================================================
--- head/sys/dev/usb2/wlan/if_zyd2.c	Tue Nov  4 19:26:39 2008	(r184657)
+++ head/sys/dev/usb2/wlan/if_zyd2.c	Tue Nov  4 19:28:19 2008	(r184658)
@@ -392,10 +392,10 @@ zyd_intr_read_callback(struct usb2_xfer 
 		usb2_copy_out(xfer->frbuffers, 0,
 		    &sc->sc_intr_ibuf, actlen);
 
-		switch (cmd->code) {
-		case htole16(ZYD_NOTIF_RETRYSTATUS):
+		switch (htole16(cmd->code)) {
+		case ZYD_NOTIF_RETRYSTATUS:
 			goto handle_notif_retrystatus;
-		case htole16(ZYD_NOTIF_IORD):
+		case ZYD_NOTIF_IORD:
 			goto handle_notif_iord;
 		default:
 			DPRINTFN(2, "unknown indication: 0x%04x\n",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811041928.mA4JSJsM005883>