]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: Check no positive return values from pm_runtime_resume_and_get()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 15 Aug 2025 11:31:21 +0000 (14:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Aug 2025 10:16:26 +0000 (12:16 +0200)
commit23cd838a178a81183da9db6cb3390bb540b000a5
tree8980ad24bb61930f701fce1bc336f4770c1c6b4b
parentc851b71fd6cdbf3000bf0a2354592a0f09db3ba3
USB: Check no positive return values from pm_runtime_resume_and_get()

pm_runtime_resume_and_get() always returns a negative error code or zero;
there's no need to check for positive values such as returned by
pm_runtime_get_sync(). Simply drop the check.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250815113121.925641-1-sakari.ailus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/driver.c