linux-stable/drivers/hid
Lukas Bulwahn 4df4b0fe96 HID: core: remove unneeded assignment in hid_process_report()
Commit bebcc522fb ("HID: core: for input reports, process the usages by
priority list") split the iteration into two distinct loops in
hid_process_report().

After this change, the variable field is only used while iterating in the
second loop and the assignment of values to this variable in the first loop
is simply not needed.

Remove the unneeded assignment during retrieval. No functional change and
no change in the resulting object code.

This was discovered as a dead store with clang-analyzer.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-07-21 13:36:49 +02:00
..
amd-sfh-hid HID: amd_sfh: Move bus declaration outside of amd-sfh 2022-05-11 14:16:26 +02:00
i2c-hid Merge branch 'for-5.18/i2c-hid' into for-linus 2022-03-23 10:04:40 +01:00
intel-ish-hid HID: intel-ish-hid: ipc: add ADL and RPL device id 2022-03-30 17:20:23 +02:00
surface-hid
usbhid
hid-a4tech.c
hid-accutouch.c
hid-alps.c
hid-apple.c HID: apple: Properly handle function keys on Keychron keyboards 2022-05-11 14:21:56 +02:00
hid-appleir.c
hid-asus.c
hid-aureal.c
hid-axff.c
hid-belkin.c
hid-betopff.c
hid-bigbenff.c HID: bigben: fix slab-out-of-bounds Write in bigben_probe 2022-05-06 10:46:36 +02:00
hid-cherry.c
hid-chicony.c
hid-cmedia.c
hid-core.c HID: core: remove unneeded assignment in hid_process_report() 2022-07-21 13:36:49 +02:00
hid-corsair.c
hid-cougar.c
hid-cp2112.c
hid-creative-sb0540.c
hid-cypress.c
hid-debug.c HID: add mapping for KEY_ALL_APPLICATIONS 2022-03-03 18:44:21 -08:00
hid-dr.c
hid-elan.c HID: elan: Fix potential double free in elan_input_configured 2022-04-21 11:38:28 +02:00
hid-elecom.c
hid-elo.c HID: elo: Revert USB reference counting 2022-02-17 14:14:41 +01:00
hid-emsff.c
hid-ezkey.c
hid-ft260.c
hid-gaff.c
hid-gembird.c
hid-generic.c
hid-gfrm.c
hid-glorious.c
hid-google-hammer.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2022-04-01 10:14:32 -07:00
hid-gt683r.c
hid-gyration.c
hid-holtek-kbd.c
hid-holtek-mouse.c
hid-holtekff.c
hid-hyperv.c
hid-icade.c
hid-ids.h Merge branch 'for-5.19/uclogic' into for-linus 2022-05-24 10:58:06 +02:00
hid-input.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid 2022-03-25 12:22:16 -07:00
hid-ite.c
hid-jabra.c
hid-kensington.c
hid-keytouch.c
hid-kye.c HID: uclogic: Switch to Digitizer usage for styluses 2022-05-11 14:19:27 +02:00
hid-lcpower.c
hid-led.c HID: hid-led: fix maximum brightness for Dream Cheeky 2022-04-21 10:28:49 +02:00
hid-lenovo.c HID: lenovo: Add note about different report numbers 2022-05-02 17:49:44 +02:00
hid-letsketch.c
hid-lg-g15.c
hid-lg.c
hid-lg.h
hid-lg2ff.c
hid-lg3ff.c
hid-lg4ff.c
hid-lg4ff.h
hid-lgff.c
hid-logitech-dj.c HID: logitech-dj: add new lightspeed receiver id 2022-02-16 16:26:21 +01:00
hid-logitech-hidpp.c
hid-macally.c
hid-magicmouse.c
hid-maltron.c
hid-mcp2221.c
hid-megaworld.c HID: Add support for Mega World controller force feedback 2022-05-06 08:29:26 +02:00
hid-mf.c
hid-microsoft.c
hid-monterey.c
hid-multitouch.c HID: multitouch: Add support for Google Whiskers Touchpad 2022-04-21 10:24:35 +02:00
hid-nintendo.c HID: nintendo: check the return value of alloc_workqueue() 2022-03-01 15:56:43 +01:00
hid-nti.c
hid-ntrig.c
hid-ortek.c
hid-penmount.c
hid-petalynx.c
hid-picolcd.h
hid-picolcd_backlight.c
hid-picolcd_cir.c
hid-picolcd_core.c
hid-picolcd_debugfs.c
hid-picolcd_fb.c
hid-picolcd_lcd.c
hid-picolcd_leds.c
hid-pl.c
hid-plantronics.c
hid-playstation.c
hid-primax.c
hid-prodikeys.c
hid-quirks.c HID: apple: Add necessary IDs and configuration for T2 Macs. 2022-02-16 16:55:00 +01:00
hid-razer.c HID: Add driver for Razer Blackwidow keyboards 2022-02-16 17:12:14 +01:00
hid-redragon.c
hid-retrode.c
hid-rmi.c
hid-roccat-arvo.c
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h
hid-roccat-isku.c
hid-roccat-isku.h
hid-roccat-kone.c
hid-roccat-kone.h
hid-roccat-koneplus.c
hid-roccat-koneplus.h
hid-roccat-konepure.c
hid-roccat-kovaplus.c
hid-roccat-kovaplus.h
hid-roccat-lua.c
hid-roccat-lua.h
hid-roccat-pyra.c
hid-roccat-pyra.h
hid-roccat-ryos.c
hid-roccat-savu.c
hid-roccat-savu.h
hid-roccat.c
hid-saitek.c
hid-samsung.c
hid-semitek.c
hid-sensor-custom.c
hid-sensor-hub.c
hid-sigmamicro.c HID: add SiGma Micro driver 2022-02-02 15:12:22 +01:00
hid-sjoy.c
hid-sony.c
hid-speedlink.c
hid-steam.c
hid-steelseries.c
hid-sunplus.c
hid-thrustmaster.c HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts 2022-02-21 09:15:10 +01:00
hid-tivo.c
hid-tmff.c
hid-topseed.c
hid-twinhan.c
hid-u2fzero.c
hid-uclogic-core.c HID: uclogic: Add pen support for XP-PEN Star 06 2022-05-11 14:19:27 +02:00
hid-uclogic-params.c HID: uclogic: Add pen support for XP-PEN Star 06 2022-05-11 14:19:27 +02:00
hid-uclogic-params.h HID: uclogic: Do not focus on touch ring only 2022-05-11 14:19:27 +02:00
hid-uclogic-rdesc.c HID: uclogic: Switch to Digitizer usage for styluses 2022-05-11 14:19:27 +02:00
hid-uclogic-rdesc.h HID: uclogic: Differentiate touch ring and touch strip 2022-05-11 14:19:27 +02:00
hid-udraw-ps3.c
hid-viewsonic.c HID: uclogic: Switch to Digitizer usage for styluses 2022-05-11 14:19:27 +02:00
hid-vivaldi-common.c HID: google: extract Vivaldi hid feature mapping for use in hid-hammer 2022-03-14 21:11:10 -07:00
hid-vivaldi-common.h HID: google: extract Vivaldi hid feature mapping for use in hid-hammer 2022-03-14 21:11:10 -07:00
hid-vivaldi.c HID: google: extract Vivaldi hid feature mapping for use in hid-hammer 2022-03-14 21:11:10 -07:00
hid-waltop.c
hid-wiimote-core.c
hid-wiimote-debug.c
hid-wiimote-modules.c
hid-wiimote.h
hid-xiaomi.c
hid-xinmo.c
hid-zpff.c
hid-zydacron.c
hidraw.c
Kconfig for-linus-2022052401 2022-05-24 15:21:15 -07:00
Makefile for-linus-2022052401 2022-05-24 15:21:15 -07:00
uhid.c uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
wacom.h
wacom_sys.c HID: wacom: Correct power_supply type 2022-04-21 09:59:40 +02:00
wacom_wac.c Hid: wacom: Fix kernel test robot warning 2022-05-06 08:36:28 +02:00
wacom_wac.h HID: wacom: Adding Support for new usages 2022-04-21 09:42:32 +02:00