Commit c5f3fd21 authored by Al Viro's avatar Al Viro

apparmorfs: don't duplicate kfree_link()

rawdata_link_cb() is identical to it
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 12c0c3a6
......@@ -1615,11 +1615,6 @@ static char *gen_symlink_name(int depth, const char *dirname, const char *fname)
return buffer;
}
static void rawdata_link_cb(void *arg)
{
kfree(arg);
}
static const char *rawdata_get_link_base(struct dentry *dentry,
struct inode *inode,
struct delayed_call *done,
......@@ -1643,7 +1638,7 @@ static const char *rawdata_get_link_base(struct dentry *dentry,
if (IS_ERR(target))
return target;
set_delayed_call(done, rawdata_link_cb, target);
set_delayed_call(done, kfree_link, target);
return target;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment