staging: vt6656: Remove memory buffer from vnt_download_firmware.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 19 Jan 2020 12:04:34 +0000 (12:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 08:52:39 +0000 (09:52 +0100)
commit747a64bd01f869f8b987e17992bba1db8108161a
tree865c8c9376b1a72208348c315745e0fe93673eba
parent1ca9c731057994e5b1f98e9869127af61f3c0cd3
staging: vt6656: Remove memory buffer from vnt_download_firmware.

The memory buffer is being done twice here as vnt_control_out passes
it straight to kmemdup.

Remove buffer and add const to the variable in vnt_control_out to pass
the pointer to it.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/be025ed0-204d-e957-4bc9-963e841fcb2c@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/firmware.c
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h