Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab53eb97 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Greg Kroah-Hartman
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53dbcb39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;