Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9507ca3 authored by Markus Elfring's avatar Markus Elfring Committed by Vinod Koul
Browse files

dmaenegine: Delete a check before free_percpu()



The free_percpu() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 4ff2fd83
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -330,7 +330,6 @@ static int __init dma_channel_table_init(void)
	if (err) {
		pr_err("initialization failure\n");
		for_each_dma_cap_mask(cap, dma_cap_mask_all)
			if (channel_table[cap])
			free_percpu(channel_table[cap]);
	}