mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
iommu/fsl_pamu: Remove unnecessary null test before kfree
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: Joerg Roedel <[email protected]> Cc: Grant Likely <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
4c834452aa
commit
34df6ab795
1 changed files with 1 additions and 2 deletions
|
|
@ -1118,8 +1118,7 @@ static int fsl_pamu_set_windows(struct iommu_domain *domain, u32 w_count)
|
|||
ret = pamu_set_domain_geometry(dma_domain, &domain->geometry,
|
||||
((w_count > 1) ? w_count : 0));
|
||||
if (!ret) {
|
||||
if (dma_domain->win_arr)
|
||||
kfree(dma_domain->win_arr);
|
||||
kfree(dma_domain->win_arr);
|
||||
dma_domain->win_arr = kzalloc(sizeof(struct dma_window) *
|
||||
w_count, GFP_ATOMIC);
|
||||
if (!dma_domain->win_arr) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue