Commit 52f944ee authored by Richard Gong's avatar Richard Gong Committed by Greg Kroah-Hartman
Browse files

firmware: stratix10-rsu: fix warnings



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

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarRichard 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3801896
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static ssize_t reboot_image_store(struct device *dev,
	unsigned long address;
	int ret;

	if (priv == 0)
	if (!priv)
		return -ENODEV;

	ret = kstrtoul(buf, 0, &address);
@@ -441,7 +441,7 @@ static ssize_t notify_store(struct device *dev,
	unsigned long status;
	int ret;

	if (priv == 0)
	if (!priv)
		return -ENODEV;

	ret = kstrtoul(buf, 0, &status);