From owner-svn-src-head@FreeBSD.ORG Tue Nov 4 19:28:19 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B178C1065688; Tue, 4 Nov 2008 19:28:19 +0000 (UTC) (envelope-from rink@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9FF948FC08; Tue, 4 Nov 2008 19:28:19 +0000 (UTC) (envelope-from rink@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mA4JSJ8E005884; Tue, 4 Nov 2008 19:28:19 GMT (envelope-from rink@svn.freebsd.org) Received: (from rink@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mA4JSJsM005883; Tue, 4 Nov 2008 19:28:19 GMT (envelope-from rink@svn.freebsd.org) Message-Id: <200811041928.mA4JSJsM005883@svn.freebsd.org> From: Rink Springer Date: Tue, 4 Nov 2008 19:28:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184658 - head/sys/dev/usb2/wlan X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 19:28:19 -0000 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",