usb: misc: ehset: fix wrong if condition
authorXu Yang <xu.yang_2@nxp.com>
Wed, 5 Jul 2023 09:52:31 +0000 (17:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:37:30 +0000 (10:37 +0200)
commit7f2327666a9080e428166964e37548b0168cd5e9
treeffab86602268089677b178285fd98e4f1d4b6996
parentb32b8f2b9542d8039f5468303a6ca78c1b5611a5
usb: misc: ehset: fix wrong if condition

A negative number from ret means the host controller had failed to send
usb message and 0 means succeed. Therefore, the if logic is wrong here
and this patch will fix it.

Fixes: f2b42379c576 ("usb: misc: ehset: Rework test mode entry")
Cc: stable <stable@kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20230705095231.457860-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ehset.c