]> git.baikalelectronics.ru Git - kernel.git/commit
drm: i915: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:25 +0000 (14:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:44:08 +0000 (10:44 +0200)
commitc11fc0bbd654cdcff86e013f7f0b05b8a522c5f7
tree15a1f13988ac9466c00948ab687263e7166567f0
parentc4a39a4c53711e5853a10b0bedfe28c6e9c9def3
drm: i915: drop null test before destroy functions

Remove unneeded NULL test.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@ expression x; @@
-if (x != NULL)
  \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c