usb: class: usbtmc.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Rickard Strandqvist 2014-06-01 15:43:19 +02:00 committed by Greg Kroah-Hartman
parent 53dbcb399b
commit ab53eb9736

View file

@ -715,7 +715,7 @@ static int usbtmc_ioctl_clear(struct usbtmc_device_data *data)
u8 *buffer;
int rv;
int n;
int actual;
int actual = 0;
int max_size;
dev = &data->intf->dev;