Re: [PATCH] media: usb: ttusb-dec: reduce the number of memory reads in ttusb_dec_handle_irq()

2020-05-07 Thread Greg KH
On Thu, May 07, 2020 at 06:25:21PM +0800, Jia-Ju Bai wrote: > In ttusb_dec_handle_irq(), buffer[4] is continuously read from memory > three times, without being modified. > To reduce the number of memory reads, buffer[4] is first assigned to a > local variable index, and then index is used to

[PATCH] media: usb: ttusb-dec: reduce the number of memory reads in ttusb_dec_handle_irq()

2020-05-07 Thread Jia-Ju Bai
In ttusb_dec_handle_irq(), buffer[4] is continuously read from memory three times, without being modified. To reduce the number of memory reads, buffer[4] is first assigned to a local variable index, and then index is used to replace buffer[4]. Signed-off-by: Jia-Ju Bai ---