Commit daa74a25 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

tty: vt: Remove redundant null check before kfree.

kfree on a NULL pointer is a no-op.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13c3237d
...@@ -410,10 +410,8 @@ static void con_release_unimap(struct uni_pagedir *p) ...@@ -410,10 +410,8 @@ static void con_release_unimap(struct uni_pagedir *p)
kfree(p->inverse_translations[i]); kfree(p->inverse_translations[i]);
p->inverse_translations[i] = NULL; p->inverse_translations[i] = NULL;
} }
if (p->inverse_trans_unicode) {
kfree(p->inverse_trans_unicode); kfree(p->inverse_trans_unicode);
p->inverse_trans_unicode = NULL; p->inverse_trans_unicode = NULL;
}
} }
/* Caller must hold the console lock */ /* Caller must hold the console lock */
......
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