diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:02 -0500 |
commit | 735d5661d5c5f023a78fbe68e771e261040ff1b7 (patch) | |
tree | b9865f0322d8e74661639f5f33b1897b23004659 /drivers/char/selection.c | |
parent | fa671646f61182cd18234461a6e65f50c6558695 (diff) |
[PATCH] kfree cleanup: drivers/char
This is the drivers/char/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/char/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/selection.c')
-rw-r--r-- | drivers/char/selection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/selection.c b/drivers/char/selection.c index 16d630f58bb4..5b187c895c18 100644 --- a/drivers/char/selection.c +++ b/drivers/char/selection.c | |||
@@ -246,8 +246,7 @@ int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *t | |||
246 | clear_selection(); | 246 | clear_selection(); |
247 | return -ENOMEM; | 247 | return -ENOMEM; |
248 | } | 248 | } |
249 | if (sel_buffer) | 249 | kfree(sel_buffer); |
250 | kfree(sel_buffer); | ||
251 | sel_buffer = bp; | 250 | sel_buffer = bp; |
252 | 251 | ||
253 | obp = bp; | 252 | obp = bp; |