VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Aristeu Rozanski <aris@redhat.com> 2012-09-12 10:31:13 -0400 committer: Tejun Heo <tj@kernel.org> 2012-09-13 11:10:49 -0700 commit: b9d6cfdeaf67cc34cdfd53ab234358dd2910a0f4 parent: 4895768b6aab55bbdbebcf2da090cb1a5ccf5463
Commit Summary:
xattr: mark variable as uninitialized to make both gcc and smatch happy
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/xattr.c b/fs/xattr.c
index f053c1135d0f..014f11321fd9 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -845,7 +845,7 @@ static int __simple_xattr_set(struct simple_xattrs *xattrs, const char *name,
 			      const void *value, size_t size, int flags)
 {
 	struct simple_xattr *xattr;
-	struct simple_xattr *new_xattr = NULL;
+	struct simple_xattr *uninitialized_var(new_xattr);
 	int err = 0;
 
 	/* value == NULL means remove */