svn commit: r212986 - user/weongyo/usb/sys/dev/usb
Weongyo Jeong
weongyo at FreeBSD.org
Wed Sep 22 00:54:51 UTC 2010
Author: weongyo
Date: Wed Sep 22 00:54:50 2010
New Revision: 212986
URL: http://svn.freebsd.org/changeset/base/212986
Log:
Removes unnecessary spaces; no functional changes.
Modified:
user/weongyo/usb/sys/dev/usb/usb_busdma.c
Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c Wed Sep 22 00:25:16 2010 (r212985)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c Wed Sep 22 00:54:50 2010 (r212986)
@@ -85,27 +85,17 @@ usbd_get_page(struct usb_page_cache *pc,
#if USB_HAVE_BUSDMA
if (pc->pages != NULL) {
-
/* Case 1 - something has been loaded into DMA */
-
if (pc->buffer) {
-
/* Case 1a - Kernel Virtual Address */
-
res->buffer = USB_ADD_BYTES(pc->buffer, offset);
}
offset += pc->page_offset_buf;
-
/* compute destination page */
-
page = pc->pages;
-
if (pc->ismultiseg) {
-
page += (offset / USB_PAGE_SIZE);
-
offset %= USB_PAGE_SIZE;
-
res->length = USB_PAGE_SIZE - offset;
res->physaddr = page->physaddr + offset;
} else {
@@ -113,16 +103,13 @@ usbd_get_page(struct usb_page_cache *pc,
res->physaddr = page->physaddr + offset;
}
if (!pc->buffer) {
-
/* Case 1b - Non Kernel Virtual Address */
-
res->buffer = USB_ADD_BYTES(page->buffer, offset);
}
return;
}
#endif
/* Case 2 - Plain PIO */
-
res->buffer = USB_ADD_BYTES(pc->buffer, offset);
res->length = 0 - 1;
#if USB_HAVE_BUSDMA
More information about the svn-src-user
mailing list