projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f971e
)
staging: ozwpan: Remove redundant null check before kfree in ozpd.c
author
Sachin Kamat
<
[email protected]
>
Tue, 20 Nov 2012 11:40:08 +0000
(17:10 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 21 Nov 2012 21:50:12 +0000
(13:50 -0800)
kfree on NULL pointer is a no-op.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Rupesh Gujare <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/ozwpan/ozpd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/ozwpan/ozpd.c
b/drivers/staging/ozwpan/ozpd.c
index 0b3648ce96876483c7f9886de01632222a4962a7..118a4db74decde13c9846512d5efc09e74b1cffc 100644
(file)
--- 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)
f = 0;
}
spin_unlock_bh(&pd->tx_frame_lock);
- if (f)
- kfree(f);
+ kfree(f);
}
/*------------------------------------------------------------------------------
* Context: softirq-serialized
@@
-737,8
+736,7
@@
int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num)
st = 0;
}
spin_unlock_bh(&pd->stream_lock);
- if (st)
- kfree(st);
+ kfree(st);
return 0;
}
/*------------------------------------------------------------------------------