]> Git Repo - linux.git/commit - drivers/usb/host/xhci-ring.c
xhci: simplify how we store TDs in urb private data
authorMathias Nyman <[email protected]>
Mon, 23 Jan 2017 12:20:26 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 25 Jan 2017 10:00:02 +0000 (11:00 +0100)
commit7e64b0373af50fa46d3bf441f1c079615bbdf77f
treed5988e439ab7bb6a6364ef8d82ef64d7b7b44681
parent9ef7fbbb4fdfb857e606a9fd550faa8011cce5e2
xhci: simplify how we store TDs in urb private data

Instead of storing a zero length array of td pointers, and then
allocate memory both for the td pointer array and the td's, just
use a zero length array of actual td's in urb private data.

old:

struct urb_priv {
       struct xhci_td *td[0]
}

new:

struct urb_priv {
        struct xhci_td td[0]
}

Signed-off-by: Mathias Nyman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h
This page took 0.056447 seconds and 4 git commands to generate.