projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c0f8bc
)
sparc: remove some pointless conditionals before kfree()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Wed, 15 Apr 2009 10:04:56 +0000
(
03:04
-0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 15 Apr 2009 10:04:56 +0000
(
03:04
-0700)
Remove some pointless conditionals before kfree().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ldc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/ldc.c
b/arch/sparc/kernel/ldc.c
index 6ce5d2598a09f938596fa2c74072e6bdb2d0e7f7..adf5f273868aaf1f461a47a97f2be4b3a217518d 100644
(file)
--- a/
arch/sparc/kernel/ldc.c
+++ b/
arch/sparc/kernel/ldc.c
@@
-1183,8
+1183,7
@@
out_free_txq:
free_queue(lp->tx_num_entries, lp->tx_base);
out_free_mssbuf:
- if (mssbuf)
- kfree(mssbuf);
+ kfree(mssbuf);
out_free_iommu:
ldc_iommu_release(lp);
@@
-1217,8
+1216,7
@@
void ldc_free(struct ldc_channel *lp)
hlist_del(&lp->list);
- if (lp->mssbuf)
- kfree(lp->mssbuf);
+ kfree(lp->mssbuf);
ldc_iommu_release(lp);