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 коммит произвёл Greg Kroah-Hartman
Родитель 53dbcb399b
Коммит ab53eb9736
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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