Skip to content

Commit

Permalink
usb: musb: musb_host.c: Cleaning up uninitialized variables
Browse files Browse the repository at this point in the history
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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Rickard Strandqvist authored and Felipe Balbi committed Jun 30, 2014
1 parent f875bf3 commit eac44dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/musb/musb_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ static int musb_schedule(
struct musb_qh *qh,
int is_in)
{
int idle;
int idle = 0;
int best_diff;
int best_end, epnum;
struct musb_hw_ep *hw_ep = NULL;
Expand Down

0 comments on commit eac44dc

Please sign in to comment.