Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102987280
D44859.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
873 B
Referenced Files
None
Subscribers
None
D44859.diff
View Options
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c
--- a/sys/dev/aic7xxx/aic7xxx.c
+++ b/sys/dev/aic7xxx/aic7xxx.c
@@ -4931,7 +4931,6 @@
for (i = 0; i < AHC_TMODE_CMDS; i++)
ahc->targetcmds[i].cmd_valid = 0;
ahc_sync_tqinfifo(ahc, BUS_DMASYNC_PREREAD);
- ahc->qoutfifo = (uint8_t *)&ahc->targetcmds[256];
}
ahc->qinfifo = &ahc->qoutfifo[256];
diff --git a/sys/dev/aic7xxx/aic7xxx_inline.h b/sys/dev/aic7xxx/aic7xxx_inline.h
--- a/sys/dev/aic7xxx/aic7xxx_inline.h
+++ b/sys/dev/aic7xxx/aic7xxx_inline.h
@@ -217,7 +217,7 @@
static __inline uint32_t
ahc_targetcmd_offset(struct ahc_softc *ahc, u_int index)
{
- return (((uint8_t *)&ahc->targetcmds[index]) - ahc->qoutfifo);
+ return (((uint8_t *)&ahc->targetcmds[index]) - (uint8_t *)ahc->targetcmds);
}
/******************************** Debugging ***********************************/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 12:38 PM (22 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14738598
Default Alt Text
D44859.diff (873 B)
Attached To
Mode
D44859: ahc(4): resolve some minor nits
Attached
Detach File
Event Timeline
Log In to Comment