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",
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to