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:
e756910
)
Staging: sbe-2t3e3: redundant null check before kfree()
author
Alexander Beregalov
<a.beregalov@gmail.com>
Sat, 26 Mar 2011 17:18:10 +0000
(20:18 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 20 Apr 2011 20:45:57 +0000
(13:45 -0700)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sbe-2t3e3/dc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/sbe-2t3e3/dc.c
b/drivers/staging/sbe-2t3e3/dc.c
index dc53016d546c142d25807b61b294dba9ad1e2e8d..9dc4ec2109eb13effa559cc185f42354c9e60367 100644
(file)
--- a/
drivers/staging/sbe-2t3e3/dc.c
+++ b/
drivers/staging/sbe-2t3e3/dc.c
@@
-442,15
+442,10
@@
void dc_drop_descriptor_list(struct channel *sc)
}
}
- if (sc->ether.rx_ring != NULL) {
- kfree(sc->ether.rx_ring);
- sc->ether.rx_ring = NULL;
- }
-
- if (sc->ether.tx_ring != NULL) {
- kfree(sc->ether.tx_ring);
- sc->ether.tx_ring = NULL;
- }
+ kfree(sc->ether.rx_ring);
+ sc->ether.rx_ring = NULL;
+ kfree(sc->ether.tx_ring);
+ sc->ether.tx_ring = NULL;
}