>From 021e06497835f05f2d4b9a3f64503c8a0f4d958a Mon Sep 17 00:00:00 2001 From: "Mario J. Rugiero" <[email protected]> Date: Tue, 13 Jan 2015 09:25:28 -0300 Subject: [PATCH 1/2] Checkpatch fix: use of kfree is safe, so the checking is redundant.
Signed-off-by: Mario J. Rugiero <[email protected]> --- drivers/gpu/drm/via/via_fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/via/via_fb.c b/drivers/gpu/drm/via/via_fb.c index 04d1d0d..a105fb4 100644 --- a/drivers/gpu/drm/via/via_fb.c +++ b/drivers/gpu/drm/via/via_fb.c @@ -1241,8 +1241,7 @@ via_framebuffer_fini(struct drm_device *dev) unregister_framebuffer(info); if (info->cmap.len) fb_dealloc_cmap(&info->cmap); - if (info->apertures) - kfree(info->apertures); + kfree(info->apertures); framebuffer_release(info); helper->fbdev = NULL; -- 2.2.1
_______________________________________________ Openchrome-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/openchrome-devel
