Commit d05c76fc authored by Even Xu's avatar Even Xu Committed by Jiri Kosina
Browse files

Hid: Intel-thc-hid: Intel-thc: Fix "dubious: !x | !y" issue



Change to use "||" to make it more readable and avoid miss
understanding.

Signed-off-by: default avatarEven Xu <even.xu@intel.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501292144.eFDq4ovr-lkp@intel.com


Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 03dcede2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ static void release_dma_buffers(struct thc_device *dev,
		return;

	for (i = 0; i < config->prd_tbl_num; i++) {
		if (!config->sgls[i] | !config->sgls_nent[i])
		if (!config->sgls[i] || !config->sgls_nent[i])
			continue;

		dma_unmap_sg(dev->dev, config->sgls[i],