summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2021-01-29 16:00:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-29 16:16:50 +0300
commit0353810a047ef0101af01665f60597d7f5cc6b02 (patch)
tree57dfb5e32ef43466986f38c12ed6598a13c5a0fa /lib/mpi/mpiutil.c
parent55f6153d8cc8eff0852d108f80087fdf41dc2169 (diff)
downloadlinux-0353810a047ef0101af01665f60597d7f5cc6b02.tar.xz
xhci: avoid DMA double fetch when reading event trb type.
Instead of re-reading, masking and endianness correcting the same trb several times to get the trb type from an event, just do it once and store it in a local variable. Also pass the trb_type directly to the vendor specific event handler, avoiding one more similar read. In addition to the security benefit this also cleans up the code and helps readability. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20210129130044.206855-13-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions