HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting
Subsystems (2)
Xinpeng Sun
maintainerPATCH 1/1 HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting
The type definition of qcdev->i2c_max_frame_size is already u32, so remove the unnecessary type casting le16_to_cpu.
Signed-off-by Xinpeng Sun <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c +1 -1
@@ -466,7 +466,7 @@ static void quicki2c_dma_adv_enable(struct quicki2c_device *qcdev)dev_warn (qcdev->dev,"Max frame size is smaller than hid max input length!" );thc_i2c_set_rx_max_size (qcdev->thc_hw, -le16_to_cpu (qcdev->i2c_max_frame_size)); + qcdev->i2c_max_frame_size); }thc_i2c_rx_max_size_enable (qcdev->thc_hw, true); }
Signature · 1 line
2.40.1
Quoted 6 lines · Xinpeng Sun
The type definition of
qcdev->i2c_max_frame_sizeis already u32, so remove the unnecessary type castingle16_to_cpu.Signed-off-by Xinpeng Sun <[email protected]>Reported-by kernel test robot <[email protected]>
Applied to hid.git#for-6.18/upstream-fixes, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs