git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
drivers
/
net
/
bsd_comp.c
diff --git
a/drivers/net/bsd_comp.c
b/drivers/net/bsd_comp.c
index
3d88ad6
..
fb4098e
100644
(file)
--- a/
drivers/net/bsd_comp.c
+++ b/
drivers/net/bsd_comp.c
@@
-323,33
+323,27
@@
static void bsd_reset (void *state)
*/
static void bsd_free (void *state)
*/
static void bsd_free (void *state)
-
{
-
struct bsd_db *db = (struct bsd_db *)
state;
+{
+
struct bsd_db *db =
state;
- if (db)
- {
+ if (!db)
+ return;
+
/*
* Release the dictionary
*/
/*
* Release the dictionary
*/
- if (db->dict)
- {
- vfree (db->dict);
- db->dict = NULL;
- }
+ vfree(db->dict);
+ db->dict = NULL;
/*
* Release the string buffer
*/
/*
* Release the string buffer
*/
- if (db->lens)
- {
- vfree (db->lens);
- db->lens = NULL;
- }
+ vfree(db->lens);
+ db->lens = NULL;
/*
* Finally release the structure itself.
*/
/*
* Finally release the structure itself.
*/
- kfree (db);
- }
- }
+ kfree(db);
+}
/*
* Allocate space for a (de) compressor.
/*
* Allocate space for a (de) compressor.