Skip to content

Commit

Permalink
staging: ft1000: Fix ft1000_control function timeout argument usage.
Browse files Browse the repository at this point in the history
Function ft1000_control have input argument timeout which was not passed
to usb_control_msg instead hardcoded to LARGE_TIMEOUT.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent f553646 commit 1897895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static int ft1000_control(struct ft1000_device *ft1000dev, unsigned int pipe,
}

ret = usb_control_msg(ft1000dev->dev, pipe, request, requesttype,
value, index, data, size, LARGE_TIMEOUT);
value, index, data, size, timeout);

if (ret > 0)
ret = 0;
Expand Down

0 comments on commit 1897895

Please sign in to comment.