Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac44dc4 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Felipe Balbi
Browse files

usb: musb: musb_host.c: Cleaning up uninitialized variables



There is a risk that the variable will be used without being initialized.

This was largely found by using a static code analysis program called cppcheck.

Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f875bf35
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1957,7 +1957,7 @@ static int musb_schedule(
	struct musb_qh		*qh,
	struct musb_qh		*qh,
	int			is_in)
	int			is_in)
{
{
	int			idle;
	int			idle = 0;
	int			best_diff;
	int			best_diff;
	int			best_end, epnum;
	int			best_end, epnum;
	struct musb_hw_ep	*hw_ep = NULL;
	struct musb_hw_ep	*hw_ep = NULL;