All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] gpu/drm: remove unnecessary check before kfree
@ 2015-06-26  6:25 ` Maninder Singh
  0 siblings, 0 replies; 6+ messages in thread
From: Maninder Singh @ 2015-06-26  6:25 UTC (permalink / raw)
  To: airlied, alexander.deucher, christian.koenig, Jammy.Zhou,
	young.yang, samuel.li, marek.olsak, dri-devel, linux-kernel
  Cc: Maninder Singh, pankaj.m

kfree(NULL) is safe and this check is probably not required

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index fec487d..a85cd08 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1575,8 +1575,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev)
 	amdgpu_fence_driver_fini(adev);
 	amdgpu_fbdev_fini(adev);
 	r = amdgpu_fini(adev);
-	if (adev->ip_block_enabled)
-		kfree(adev->ip_block_enabled);
+	kfree(adev->ip_block_enabled);
 	adev->ip_block_enabled = NULL;
 	adev->accel_working = false;
 	/* free i2c buses */
-- 
1.7.9.5

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] gpu/drm: remove unnecessary check before kfree
@ 2015-06-26  6:54 ` Maninder Singh
  0 siblings, 0 replies; 6+ messages in thread
From: Maninder Singh @ 2015-06-26  6:54 UTC (permalink / raw)
  To: Michel Dänzer
  Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	PANKAJ MISHRA

Hi,

>The shortlog prefix of both your patches should be "drm/amdgpu:" instead
>of "gpu/drm:". With that fixed, both are

Do i need to send V2 of patch with that change or you have fixed that?

>Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Thanks.
..........
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-26  6:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26  6:25 [PATCH 1/1] gpu/drm: remove unnecessary check before kfree Maninder Singh
2015-06-26  6:25 ` Maninder Singh
2015-06-26  6:46 ` Michel Dänzer
2015-06-26  6:46   ` Michel Dänzer
  -- strict thread matches above, loose matches on Subject: below --
2015-06-26  6:54 Maninder Singh
2015-06-26  6:54 ` Maninder Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.