HID: logitech-hidpp: Simplify array length check
authorBastien Nocera <hadess@hadess.net>
Thu, 2 Mar 2023 10:55:50 +0000 (11:55 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 3 Apr 2023 11:30:08 +0000 (13:30 +0200)
commite0138763be2d8bcc181c2f6110ef0f66979f1ce4
tree58efa8f7e7bfb3b98acde9418a3796fbdb555813
parent5b3691d15e04b6d5a32c915577b8dbc5cfb56382
HID: logitech-hidpp: Simplify array length check

Use the compiler to force a 100-length array, rather than check the
length after the fact.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20230302105555.51417-1-hadess@hadess.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-hidpp.c