From: JieJing.Zhang <kzjeef@xxxxxxxxx> Signed-off-by: JieJing.Zhang <kzjeef@xxxxxxxxx> --- fs/autofs4/inode.c | 6 ++---- fs/autofs4/waitq.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 821b2b9..4e394ef 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -24,10 +24,8 @@ static void ino_lnkfree(struct autofs_info *ino) { - if (ino->u.symlink) { - kfree(ino->u.symlink); - ino->u.symlink = NULL; - } + kfree(ino->u.symlink); + ino->u.symlink = NULL; } struct autofs_info *autofs4_init_ino(struct autofs_info *ino, diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index 2341375..cff98b0 100644 --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c @@ -42,10 +42,8 @@ void autofs4_catatonic_mode(struct autofs_sb_info *sbi) while (wq) { nwq = wq->next; wq->status = -ENOENT; /* Magic is gone - report failure */ - if (wq->name.name) { - kfree(wq->name.name); - wq->name.name = NULL; - } + kfree(wq->name.name); + wq->name.name = NULL; wq->wait_ctr--; wake_up_interruptible(&wq->queue); wq = nwq; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html