Home
last modified time | relevance | path

Searched hist:f933d160b1e71dd8ab3d4e2586b9ff0f584d985c (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/usb/ttusb-dec/
H A Dttusb_dec.cdiff f933d160b1e71dd8ab3d4e2586b9ff0f584d985c Thu May 07 05:25:21 CDT 2020 Jia-Ju Bai <baijiaju1990@gmail.com> media: usb: ttusb-dec: reduce the number of memory reads in ttusb_dec_handle_irq()

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 <baijiaju1990@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>