HomeFreeBSD

LinuxKPI: USB return possible error from suspend/resume

Description

LinuxKPI: USB return possible error from suspend/resume

USB suspend/resume cannot fail so we never returned the error which
resulted in a -Wunused-but-set-variable warning.
Initialize the return variable and return a possible error possibly
triggering a printf upstream to at least have a trace of the problem.
This also fixes the warning.

Suggested by: hselasky
Sponsored by: The FreeBSD Foundation
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D33107

(cherry picked from commit 943df073a348bcb1e701c3677536f913761d4123)

Details

Provenance
bzAuthored on Nov 24 2021, 9:28 PM
Reviewer
imp
Differential Revision
D33107: LinuxKPI: fix -Wunused-but-set-variable warnings
Parents
rGe17d7f3d86b0: LinuxKPI: fix -Wunused-but-set-variable warnings
Branches
Unknown
Tags
Unknown