VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Stephen Hemminger <shemminger@linux-foundation.org> 2007-10-18 03:07:05 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-10-18 14:37:31 -0700 commit: c80544dc0b87bb65038355e7aafdc30be16b26ab parent: 0e9663ee452ffce0d429656ebbcfe69417a30e92
Commit Summary:
sparse pointer use of zero as null
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index e7905816c4ca..64965e1c21c4 100644
--- a/fs/nls/nls_base.c
+++ b/fs/nls/nls_base.c
@@ -111,7 +111,7 @@ utf8_wctomb(__u8 *s, wchar_t wc, int maxlen)
 	int c, nc;
 	const struct utf8_table *t;
   
-	if (s == 0)
+	if (!s)
 		return 0;
   
 	l = wc;