]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: simplify how we store TDs in urb private data
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 23 Jan 2017 12:20:26 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:00:02 +0000 (11:00 +0100)
commit5ee7dc57b82f70f6a875c24c5c31320bfdd794f8
treed5988e439ab7bb6a6364ef8d82ef64d7b7b44681
parentb3288ce96b761976e6ef781c30c5c2b79527651a
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 <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h