Fix chip/cxd56_icc.c:498:18: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-26 11:09:52 +08:00 committed by Petro Karashchenko
parent 929882862b
commit 7ad74c413a
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ int cxd56_iccsignal(int8_t cpuid, int8_t signo, int16_t sigdata,
{
struct iccreq_s req;
if (cpuid <= 2 && cpuid >= 7)
if (cpuid <= 2 || cpuid >= 7)
{
return -EINVAL;
}