mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 06:49:52 +00:00
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: Even Xu <even.xu@intel.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501292144.eFDq4ovr-lkp@intel.com Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
03dcede219
commit
d05c76fceb
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user