diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2020-01-19 12:04:34 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-22 09:52:39 +0100 |
commit | 747a64bd01f869f8b987e17992bba1db8108161a (patch) | |
tree | 865c8c9376b1a72208348c315745e0fe93673eba /drivers/staging/vt6656/usbpipe.h | |
parent | 1ca9c731057994e5b1f98e9869127af61f3c0cd3 (diff) | |
download | linux-stable-747a64bd01f869f8b987e17992bba1db8108161a.tar.gz linux-stable-747a64bd01f869f8b987e17992bba1db8108161a.tar.bz2 linux-stable-747a64bd01f869f8b987e17992bba1db8108161a.zip |
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>
Diffstat (limited to 'drivers/staging/vt6656/usbpipe.h')
-rw-r--r-- | drivers/staging/vt6656/usbpipe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/usbpipe.h b/drivers/staging/vt6656/usbpipe.h index b65d9c01a211..4e3341bc3221 100644 --- a/drivers/staging/vt6656/usbpipe.h +++ b/drivers/staging/vt6656/usbpipe.h @@ -21,7 +21,7 @@ #define VNT_REG_BLOCK_SIZE 64 int vnt_control_out(struct vnt_private *priv, u8 request, u16 value, - u16 index, u16 length, u8 *buffer); + u16 index, u16 length, const u8 *buffer); int vnt_control_in(struct vnt_private *priv, u8 request, u16 value, u16 index, u16 length, u8 *buffer); |