Commit 6c26c055 authored by Xinpeng Sun's avatar Xinpeng Sun Committed by Jiri Kosina
Browse files

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: default avatarXinpeng Sun <xinpeng.sun@intel.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509280841.pxmgBzKW-lkp@intel.com/


Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 54ba6d9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}