diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-10-18 11:01:11 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-10-18 11:01:11 +0000 |
| commit | f485bd3a109b0bfa525bcfa887f4b552f168a91c (patch) | |
| tree | 112b0d46393fe49527d087e3d03cfdc19a1d7f5d | |
| parent | 547fa0d9b785fb498d3d0db63618b781d2b83591 (diff) | |
Notes
| -rw-r--r-- | sys/cam/cam_periph.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index f78177a3fdea..a86014953f69 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -638,9 +638,6 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) /* set the transfer length, we know it's < DFLTPHYS */ mapinfo->bp[i]->b_bufsize = lengths[i]; - /* set the flags */ - mapinfo->bp[i]->b_flags = B_PHYS; - /* set the direction */ mapinfo->bp[i]->b_iocmd = flags[i]; @@ -656,10 +653,8 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) for (j = 0; j < i; ++j) { *data_ptrs[j] = mapinfo->bp[j]->b_saveaddr; vunmapbuf(mapinfo->bp[j]); - mapinfo->bp[j]->b_flags &= ~B_PHYS; relpbuf(mapinfo->bp[j], NULL); } - mapinfo->bp[i]->b_flags &= ~B_PHYS; relpbuf(mapinfo->bp[i], NULL); PRELE(curproc); return(EACCES); @@ -720,9 +715,6 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) /* unmap the buffer */ vunmapbuf(mapinfo->bp[i]); - /* clear the flags we set above */ - mapinfo->bp[i]->b_flags &= ~B_PHYS; - /* release the buffer */ relpbuf(mapinfo->bp[i], NULL); } |
