fs/jffs2/xattr.c: remove null test before kfree

Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Fabian Frederick 2014-06-16 20:02:49 +02:00 committed by Brian Norris
parent b6861d0a15
commit 086f2f76f4
1 changed files with 1 additions and 2 deletions

View File

@ -756,8 +756,7 @@ void jffs2_clear_xattr_subsystem(struct jffs2_sb_info *c)
for (i=0; i < XATTRINDEX_HASHSIZE; i++) {
list_for_each_entry_safe(xd, _xd, &c->xattrindex[i], xindex) {
list_del(&xd->xindex);
if (xd->xname)
kfree(xd->xname);
kfree(xd->xname);
jffs2_free_xattr_datum(xd);
}
}