svn commit: r213142 - user/weongyo/usb/sys/dev/usb
Weongyo Jeong
weongyo at FreeBSD.org
Fri Sep 24 21:41:57 UTC 2010
Author: weongyo
Date: Fri Sep 24 21:41:56 2010
New Revision: 213142
URL: http://svn.freebsd.org/changeset/base/213142
Log:
Removes unnecessary spaces
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 Fri Sep 24 21:40:28 2010 (r213141)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c Fri Sep 24 21:41:56 2010 (r213142)
@@ -85,27 +85,17 @@ usbd_get_page(struct usb_page_cache *pc,
#if USB_HAVE_BUSDMA
if (pc->page_start) {
-
/* 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->page_start;
-
if (pc->ismultiseg) {
-
page += (offset / USB_PAGE_SIZE);
-
offset %= USB_PAGE_SIZE;
-
res->length = USB_PAGE_SIZE - offset;
res->physaddr = page->physaddr + offset;
} else {
@@ -116,7 +106,6 @@ usbd_get_page(struct usb_page_cache *pc,
}
#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