svn commit: r213141 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Fri Sep 24 21:40:28 UTC 2010


Author: weongyo
Date: Fri Sep 24 21:40:28 2010
New Revision: 213141
URL: http://svn.freebsd.org/changeset/base/213141

Log:
  Removes `buffer' variable of struct usb_page that could not find any
  places to set this.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_busdma.c
  user/weongyo/usb/sys/dev/usb/usb_busdma.h

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c	Fri Sep 24 21:23:23 2010	(r213140)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c	Fri Sep 24 21:40:28 2010	(r213141)
@@ -112,12 +112,6 @@ usbd_get_page(struct usb_page_cache *pc,
 			res->length = 0 - 1;
 			res->physaddr = page->physaddr + offset;
 		}
-		if (!pc->buffer) {
-
-			/* Case 1b - Non Kernel Virtual Address */
-
-			res->buffer = USB_ADD_BYTES(page->buffer, offset);
-		}
 		return;
 	}
 #endif

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.h
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.h	Fri Sep 24 21:23:23 2010	(r213140)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.h	Fri Sep 24 21:40:28 2010	(r213141)
@@ -61,7 +61,6 @@ typedef void (usb_dma_callback_t)(struct
 struct usb_page {
 #if USB_HAVE_BUSDMA
 	bus_addr_t physaddr;
-	void   *buffer;			/* non Kernel Virtual Address */
 #endif
 };
 


More information about the svn-src-user mailing list