Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: stratix10-rsu: fix warnings

Patch fixes sparse warnings: using plain integer as NULL pointer. Replaces
equal to with logical not operator.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Richard Gong <richard.gong@intel.com>
Link: https://lore.kernel.org/r/1591193212-15082-1-git-send-email-richard.gong@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Richard Gong and committed by
Greg Kroah-Hartman
52f944ee f3801896

+2 -2
+2 -2
drivers/firmware/stratix10-rsu.c
··· 416 416 unsigned long address; 417 417 int ret; 418 418 419 - if (priv == 0) 419 + if (!priv) 420 420 return -ENODEV; 421 421 422 422 ret = kstrtoul(buf, 0, &address); ··· 441 441 unsigned long status; 442 442 int ret; 443 443 444 - if (priv == 0) 444 + if (!priv) 445 445 return -ENODEV; 446 446 447 447 ret = kstrtoul(buf, 0, &status);