diff options
| author | Greg KH <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
| commit | ad2c10f8f00d3fe2e37dd8a107e7cf4ac0459489 (patch) | |
| tree | 5571f6a5784f51efddf9c1ee0408894cd63a460f /drivers/net/bsd_comp.c | |
| parent | 6b7839007098a6b5612d31690e11277d4242e6ae (diff) | |
| parent | 2ade81473636b33aaac64495f89a7dc572c529f0 (diff) | |
Merge ../torvalds-2.6/
Diffstat (limited to 'drivers/net/bsd_comp.c')
| -rw-r--r-- | drivers/net/bsd_comp.c | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/drivers/net/bsd_comp.c b/drivers/net/bsd_comp.c index 3d88ad622bdb..fb4098ed469e 100644 --- a/drivers/net/bsd_comp.c +++ b/drivers/net/bsd_comp.c | |||
| @@ -323,33 +323,27 @@ static void bsd_reset (void *state) | |||
| 323 | */ | 323 | */ |
| 324 | 324 | ||
| 325 | static void bsd_free (void *state) | 325 | static void bsd_free (void *state) |
| 326 | { | 326 | { |
| 327 | struct bsd_db *db = (struct bsd_db *) state; | 327 | struct bsd_db *db = state; |
| 328 | 328 | ||
| 329 | if (db) | 329 | if (!db) |
| 330 | { | 330 | return; |
| 331 | |||
| 331 | /* | 332 | /* |
| 332 | * Release the dictionary | 333 | * Release the dictionary |
| 333 | */ | 334 | */ |
| 334 | if (db->dict) | 335 | vfree(db->dict); |
| 335 | { | 336 | db->dict = NULL; |
| 336 | vfree (db->dict); | ||
| 337 | db->dict = NULL; | ||
| 338 | } | ||
| 339 | /* | 337 | /* |
| 340 | * Release the string buffer | 338 | * Release the string buffer |
| 341 | */ | 339 | */ |
| 342 | if (db->lens) | 340 | vfree(db->lens); |
| 343 | { | 341 | db->lens = NULL; |
| 344 | vfree (db->lens); | ||
| 345 | db->lens = NULL; | ||
| 346 | } | ||
| 347 | /* | 342 | /* |
| 348 | * Finally release the structure itself. | 343 | * Finally release the structure itself. |
| 349 | */ | 344 | */ |
| 350 | kfree (db); | 345 | kfree(db); |
| 351 | } | 346 | } |
| 352 | } | ||
| 353 | 347 | ||
| 354 | /* | 348 | /* |
| 355 | * Allocate space for a (de) compressor. | 349 | * Allocate space for a (de) compressor. |
