fix a waring during USB inventry

closes: #1990

Reported-by: Walid Nouh <walid.nouh@gmail.com>