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:
parent
b6861d0a15
commit
086f2f76f4
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue