git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
913b6f8
)
staging: dgap: tty.c: removes smatch warnings "redundant null check"
author
Lidza Louina
<lidza.louina@gmail.com>
Mon, 23 Sep 2013 22:47:15 +0000
(18:47 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:18:10 +0000
(16:18 -0700)
This patch removes these smatch warnings:
redundant null check on dgap_TmpWriteBuf calling kfree()
redundant null check on brd->SerialDriver->ttys calling kfree()
redundant null check on brd->PrintDriver->ttys calling kfree()
The code checked to see if these variables are null
before freeing. This check isn't needed.
Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap_tty.c
patch
|
blob
|
history
diff --cc
drivers/staging/dgap/dgap_tty.c
Simple merge