RISC-V: Logical vs Bitwise typo
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Dec 2017 11:49:14 +0000 (14:49 +0300)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 11 Dec 2017 15:51:06 +0000 (07:51 -0800)
commit86ad5c97ce5ccdda1459d35370fd5e105721bb8d
treef1c809ce91956d989ebe5f03c04caac00b00ae99
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36
RISC-V: Logical vs Bitwise typo

In the current code, there is a ! logical NOT where a bitwise ~ NOT was
intended.  It means that we never return -EINVAL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/sys_riscv.c