]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda44295f27c09806799b5dc8957a6095027145ce
tree7a6077c7b1b3ad5fe7d023aa2606b8449782880c
parent4188b26f0db3b8de51c0d2797f018ee0a6f22b99
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