summaryrefslogtreecommitdiffstats
path: root/sys/contrib/vchiq
diff options
context:
space:
mode:
authorskra <skra@FreeBSD.org>2015-11-23 13:23:53 +0000
committerskra <skra@FreeBSD.org>2015-11-23 13:23:53 +0000
commita807c265df657932ba6f849422b2c7ff771e2195 (patch)
tree0c647d63b0c7ff6000cadd5b3a6dc653d4527226 /sys/contrib/vchiq
parent96c4786f473b7cc48c7193cfa26e032a5e52d824 (diff)
downloadFreeBSD-src-a807c265df657932ba6f849422b2c7ff771e2195.zip
FreeBSD-src-a807c265df657932ba6f849422b2c7ff771e2195.tar.gz
Fix inconsistent use of malloc type for cdev private data.
Remove M_VCHIQ malloc type, now not used anywhere. Reviewed by: gonzo Approved by: kib (mentor)
Diffstat (limited to 'sys/contrib/vchiq')
-rw-r--r--sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c
index 556ddf6..5bd5059 100644
--- a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c
+++ b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c
@@ -54,8 +54,6 @@
#define KEEPALIVE_VER 1
#define KEEPALIVE_VER_MIN KEEPALIVE_VER
-MALLOC_DEFINE(M_VCHIQ, "vchiq_cdev", "VideoCore cdev memroy");
-
/* Run time control of log level, based on KERN_XXX level. */
int vchiq_arm_log_level = VCHIQ_LOG_DEFAULT;
int vchiq_susp_log_level = VCHIQ_LOG_ERROR;
@@ -1143,7 +1141,7 @@ static void
instance_dtr(void *data)
{
- free(data, M_VCHIQ);
+ kfree(data);
}
/****************************************************************************
OpenPOWER on IntegriCloud