Skip to content
Commit 6c5ba739 authored by Bhuvanesh Surachari's avatar Bhuvanesh Surachari Committed by Greg Kroah-Hartman
Browse files

usb: hub: Simplify error and success path in port_over_current_notify



kasprintf() returns NULL or valid pointer. Since kfree() can handle
NULL pointer condition, simplify error and success paths in function
port_over_current_notify() by removing multiple error path labels.

Signed-off-by: default avatarBhuvanesh Surachari <Bhuvanesh_Surachari@mentor.com>
Signed-off-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Link: https://lore.kernel.org/r/1652369834-4480-1-git-send-email-erosca@de.adit-jv.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dce49449
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment