Commit a4738ea3 authored by leoliu-oc's avatar leoliu-oc
Browse files

x86/cpu/zhaoxin: kx40000: fix bitwise warning issue

zhaoxin inclusion
category: other
bugzilla: https://gitee.com/openeuler/kernel/issues/I9RPB1


CVE: NA

-----------------

bitwise or with non-zero value always evaluates to true. So, "|" is
replaced with "&" here to meet the original expectation.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202405201915.EtSGIZ33-lkp@intel.com/


Signed-off-by: default avatarleoliu-oc <leoliu-oc@zhaoxin.com>
parent c564f68d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ static int __init zhaoxin_patch_code_setup(char *str)
		return err;
	}

	if (ZHAOXIN_P2CW_NODE_CHECK | zhaoxin_patch_code)
	if (ZHAOXIN_P2CW_NODE_CHECK & zhaoxin_patch_code)
		pr_info("zhaoxin dma patch node check is enabled\n");

	return 0;