summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-04-02 22:04:18 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-04-02 22:04:18 +0000
commitc47752f2d5efc5e02f1d330801b7f26cd5c80a4e (patch)
treece994e13245d581e23bd23cf1503c63be341ecf7 /sys
parente11b908ab2aff58b2ed9eb1d85913191ca88e262 (diff)
downloadFreeBSD-src-c47752f2d5efc5e02f1d330801b7f26cd5c80a4e.zip
FreeBSD-src-c47752f2d5efc5e02f1d330801b7f26cd5c80a4e.tar.gz
Shoot. Did a compile in the wrong directory and missed this compiler
error. Could someone pass me the pointy hat, please?
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/umass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 6268e32..74b8c90 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1107,7 +1107,7 @@ umass_bbb_transfer(struct umass_softc *sc, int lun, void *cmd, int cmdlen,
*/
USETDW(sc->cbw.dCBWSignature, CBWSIGNATURE);
/* We don't care what the initial value was, as long as the values are unique */
- sc->cbw.dCBWTag++; /* Increase the tag number */
+ USETDW(sc->cbw.dCBWTag, UGETDW(sc->cbw.dCBWTag) + 1);
USETDW(sc->cbw.dCBWDataTransferLength, datalen);
/* DIR_NONE is treated as DIR_OUT (0x00) */
sc->cbw.bCBWFlags = (dir == DIR_IN? CBWFLAGS_IN:CBWFLAGS_OUT);
OpenPOWER on IntegriCloud