usb: core: devices: drop redundant buffer overflow checks
authorSergey Shtylyov <s.shtylyov@omp.ru>
Fri, 22 Apr 2022 19:23:55 +0000 (22:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:57:38 +0000 (13:57 +0200)
commit08908fa1547d0550a058d0ce2d613e570f51e5f9
tree7a6077c7b1b3ad5fe7d023aa2606b8449782880c
parent9c1c0fdd04b5758aa35ac0f7ea802a1a599777a2
usb: core: devices: drop redundant buffer overflow checks

The USB device dump code often checks for the buffer overflow just before
calling the functions that do that first thing anyways.  Such checks are
redundant and may be dropped...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/0453cb0d-7b2b-25e6-50e3-091610951e58@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devices.c