Commit b4a4f036 authored by Palmer Dabbelt's avatar Palmer Dabbelt

soc: sifive: l2 cache: Eliminate an unsigned zero compare warning

GCC warns about this comparison, which is unnecessary.
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 4a3a3733
......@@ -51,7 +51,7 @@ static ssize_t l2_write(struct file *file, const char __user *data,
if (kstrtouint_from_user(data, count, 0, &val))
return -EINVAL;
if ((val >= 0 && val < 0xFF) || (val >= 0x10000 && val < 0x100FF))
if ((val < 0xFF) || (val >= 0x10000 && val < 0x100FF))
writel(val, l2_base + SIFIVE_L2_ECCINJECTERR);
else
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment