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:
parent
929882862b
commit
7ad74c413a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue