From: Aristeu Rozanski Date: Wed, 12 Sep 2012 14:31:13 +0000 (-0400) Subject: xattr: mark variable as uninitialized to make both gcc and smatch happy X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~51^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d6cfdeaf67cc34cdfd53ab234358dd2910a0f4;p=pandora-kernel.git xattr: mark variable as uninitialized to make both gcc and smatch happy new_xattr in __simple_xattr_set() is only initialized with a valid pointer if value is not NULL, which only happens if this function is called directly with the intention to remove an existing extended attribute. Even being safe to be this way, smatch warns about possible NULL dereference. Dan Carpenter suggested using uninitialized_var() which will make both gcc and smatch happy. Cc: Fengguang Wu Cc: Dan Carpenter Signed-off-by: Aristeu Rozanski Signed-off-by: Tejun Heo --- Reading git-diff-tree failed