dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [patch] drm/radeon: remove some dead code
@ 2017-02-07 13:16 Dan Carpenter
  2017-02-08  0:43 ` Michel Dänzer
  2017-02-09  2:11 ` Alex Deucher
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2017-02-07 13:16 UTC (permalink / raw)
  To: Alex Deucher
  Cc: Christian König, David Airlie, amd-gfx, dri-devel,
	kernel-janitors

If "rdev->bios" is NULL then we don't need to free it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c
index 00cfb5d2875f..04c0ed41374f 100644
--- a/drivers/gpu/drm/radeon/radeon_bios.c
+++ b/drivers/gpu/drm/radeon/radeon_bios.c
@@ -638,10 +638,8 @@ static bool radeon_acpi_vfct_bios(struct radeon_device *rdev)
 					     vhdr->ImageLength,
 					     GFP_KERNEL);
 
-			if (!rdev->bios) {
-				kfree(rdev->bios);
+			if (!rdev->bios)
 				return false;
-			}
 			return true;
 		}
 	}

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

end of thread, other threads:[~2017-02-09  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 13:16 [patch] drm/radeon: remove some dead code Dan Carpenter
2017-02-08  0:43 ` Michel Dänzer
2017-02-09  2:11 ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).