As Andrzej suggested, add BUF_SIZE and TIMEOUT_MS macros to replace the magic constant 4096 and 2000. On the other hand, use kmemdup() helper instead of open-coding to simplify the code. Jinjie Ruan (2): media: cx231xx: Add BUF_SIZE and TIMEOUT_MS macros media: cx231xx: Switch to use kmemdup() helper drivers/media/usb/cx231xx/cx231xx-core.c | 7 +++---- drivers/media/usb/cx231xx/cx231xx.h | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.34.1