summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorRickard Strandqvist2014-06-01 15:48:12 +0200
committerFelipe Balbi2014-06-30 19:27:01 +0200
commiteac44dc4e769a0f1db244dea13e10923c2877887 (patch)
tree6178bf45feeef8211c4c96ec4829826ff15b61b2 /drivers/usb/musb
parentusb: musb: backfin: Introduce the use of the managed version of kzalloc (diff)
downloadkernel-qcow2-linux-eac44dc4e769a0f1db244dea13e10923c2877887.tar.gz
kernel-qcow2-linux-eac44dc4e769a0f1db244dea13e10923c2877887.tar.xz
kernel-qcow2-linux-eac44dc4e769a0f1db244dea13e10923c2877887.zip
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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index eb06291a40c8..3b11f98f3a56 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -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;