Date: Fri, 24 Sep 2010 21:40:28 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r213141 - user/weongyo/usb/sys/dev/usb Message-ID: <201009242140.o8OLeSqP040478@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009242140.o8OLeSqP040478>