aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ozwpan/ozpd.c')
-rw-r--r--drivers/staging/ozwpan/ozpd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c
index 0b3648ce968..118a4db74de 100644
--- a/drivers/staging/ozwpan/ozpd.c
+++ b/drivers/staging/ozwpan/ozpd.c
@@ -402,8 +402,7 @@ static void oz_tx_frame_free(struct oz_pd *pd, struct oz_tx_frame *f)
402 f = 0; 402 f = 0;
403 } 403 }
404 spin_unlock_bh(&pd->tx_frame_lock); 404 spin_unlock_bh(&pd->tx_frame_lock);
405 if (f) 405 kfree(f);
406 kfree(f);
407} 406}
408/*------------------------------------------------------------------------------ 407/*------------------------------------------------------------------------------
409 * Context: softirq-serialized 408 * Context: softirq-serialized
@@ -737,8 +736,7 @@ int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num)
737 st = 0; 736 st = 0;
738 } 737 }
739 spin_unlock_bh(&pd->stream_lock); 738 spin_unlock_bh(&pd->stream_lock);
740 if (st) 739 kfree(st);
741 kfree(st);
742 return 0; 740 return 0;
743} 741}
744/*------------------------------------------------------------------------------ 742/*------------------------------------------------------------------------------