summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2020-05-07 12:25:21 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-12 17:32:35 +0200
commitf933d160b1e71dd8ab3d4e2586b9ff0f584d985c (patch)
tree88ebbcde110d3d555082e224ed3142cb091d9459 /drivers/media/pci
parent4e054aab8a1f1b43f4c34846b713ad6d8b43c729 (diff)
downloadlinux-f933d160b1e71dd8ab3d4e2586b9ff0f584d985c.tar.bz2
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>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions