projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c3237
)
tty: vt: Remove redundant null check before kfree.
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 22 Nov 2012 06:48:05 +0000
(12:18 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 23:36:38 +0000
(15:36 -0800)
kfree on a NULL pointer is a no-op.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c
patch
|
blob
|
history
diff --git
a/drivers/tty/vt/consolemap.c
b/drivers/tty/vt/consolemap.c
index 2aaa0c22840953504dc1920dcb518457cca8c708..248381b30722723fcae93f8baab842520e6b57f8 100644
(file)
--- a/
drivers/tty/vt/consolemap.c
+++ b/
drivers/tty/vt/consolemap.c
@@
-410,10
+410,8
@@
static void con_release_unimap(struct uni_pagedir *p)
kfree(p->inverse_translations[i]);
p->inverse_translations[i] = NULL;
}
- if (p->inverse_trans_unicode) {
- kfree(p->inverse_trans_unicode);
- p->inverse_trans_unicode = NULL;
- }
+ kfree(p->inverse_trans_unicode);
+ p->inverse_trans_unicode = NULL;
}
/* Caller must hold the console lock */