]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hyperv: Correctly access fields declared as __le16
authorMichael Kelley <mikelley@microsoft.com>
Wed, 8 Jun 2022 03:49:37 +0000 (20:49 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 8 Jun 2022 12:28:13 +0000 (12:28 +0000)
commit6bd28671c195c1f96728594d62d4a222b3c5f8ec
tree627c0f6dc8a74f17ae0c043a29bbc4f4e5909794
parent7193423e1b212b213f6fb0dca2c3444f8ca272c8
HID: hyperv: Correctly access fields declared as __le16

Add the use of le16_to_cpu() for fields declared as __le16. Because
Hyper-V only runs in Little Endian mode, there's no actual bug.
The change is made in the interest of general correctness in
addition to making sparse happy. No functional change.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1654660177-115463-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hid/hid-hyperv.c