Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 20:07:21 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 152486 for review
Message-ID:  <200811042007.mA4K7Le7049420@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152486

Change 152486 by hselasky@hselasky_laptop001 on 2008/11/04 20:06:27

	
	Fix a LINT issue.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#20 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#20 (text+ko) ====

@@ -392,10 +392,10 @@
 		usb2_copy_out(xfer->frbuffers, 0,
 		    &sc->sc_intr_ibuf, actlen);
 
-		switch (cmd->code) {
-		case htole16(ZYD_NOTIF_RETRYSTATUS):
+		switch (le16toh(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?200811042007.mA4K7Le7049420>