summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorrink <rink@FreeBSD.org>2008-11-04 19:28:19 +0000
committerrink <rink@FreeBSD.org>2008-11-04 19:28:19 +0000
commit482c2c52e81af97d4127523efc24ed5a4ae0fc7e (patch)
tree665cfc63d303a976f5ff30028132480f58ecdac4 /sys/dev
parentce3123c32448e7c506c8b99c4b56d21bd012f4c2 (diff)
downloadFreeBSD-src-482c2c52e81af97d4127523efc24ed5a4ae0fc7e.zip
FreeBSD-src-482c2c52e81af97d4127523efc24ed5a4ae0fc7e.tar.gz
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@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb2/wlan/if_zyd2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb2/wlan/if_zyd2.c b/sys/dev/usb2/wlan/if_zyd2.c
index 5e72593..48da310 100644
--- a/sys/dev/usb2/wlan/if_zyd2.c
+++ b/sys/dev/usb2/wlan/if_zyd2.c
@@ -392,10 +392,10 @@ zyd_intr_read_callback(struct usb2_xfer *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",
OpenPOWER on IntegriCloud