PERFORCE change 152486 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Nov 4 12:07:22 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=152486

Change 152486 by hselasky at 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",


More information about the p4-projects mailing list