aboutsummaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-10-03 14:11:20 -0400
committerRobert Noland <rnoland@2hip.net>2008-10-03 14:11:20 -0400
commit60cf3a4db4ab8ee81aca104624e89caf5587419b (patch)
tree1de36f0a282a4cbf3ea5a4b25be42442b7a70d35 /bsd-core
parent9c0ce38df3d9026785155d06fc62bdd7acaf8bf0 (diff)
[FreeBSD] Don't explicitly bzero driver softc.
This is already handled for us. Suggested by John Baldwin
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/i915_drv.c2
-rw-r--r--bsd-core/mach64_drv.c2
-rw-r--r--bsd-core/mga_drv.c2
-rw-r--r--bsd-core/r128_drv.c2
-rw-r--r--bsd-core/radeon_drv.c2
-rw-r--r--bsd-core/savage_drv.c2
-rw-r--r--bsd-core/sis_drv.c2
-rw-r--r--bsd-core/tdfx_drv.c2
-rw-r--r--bsd-core/via_drv.c2
9 files changed, 0 insertions, 18 deletions
diff --git a/bsd-core/i915_drv.c b/bsd-core/i915_drv.c
index b2658f05..87703210 100644
--- a/bsd-core/i915_drv.c
+++ b/bsd-core/i915_drv.c
@@ -109,8 +109,6 @@ i915_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/mach64_drv.c b/bsd-core/mach64_drv.c
index dcf35bbd..03a533a9 100644
--- a/bsd-core/mach64_drv.c
+++ b/bsd-core/mach64_drv.c
@@ -83,8 +83,6 @@ mach64_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/mga_drv.c b/bsd-core/mga_drv.c
index dfb4b719..ae3675c3 100644
--- a/bsd-core/mga_drv.c
+++ b/bsd-core/mga_drv.c
@@ -127,8 +127,6 @@ mga_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/r128_drv.c b/bsd-core/r128_drv.c
index f3251141..f239ea36 100644
--- a/bsd-core/r128_drv.c
+++ b/bsd-core/r128_drv.c
@@ -82,8 +82,6 @@ r128_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/radeon_drv.c b/bsd-core/radeon_drv.c
index 6b90dd69..ab5968b2 100644
--- a/bsd-core/radeon_drv.c
+++ b/bsd-core/radeon_drv.c
@@ -87,8 +87,6 @@ radeon_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/savage_drv.c b/bsd-core/savage_drv.c
index 7f406e0b..5cf2d611 100644
--- a/bsd-core/savage_drv.c
+++ b/bsd-core/savage_drv.c
@@ -73,8 +73,6 @@ savage_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/sis_drv.c b/bsd-core/sis_drv.c
index c69a093c..55a6231c 100644
--- a/bsd-core/sis_drv.c
+++ b/bsd-core/sis_drv.c
@@ -67,8 +67,6 @@ sis_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/tdfx_drv.c b/bsd-core/tdfx_drv.c
index 8c10ea8c..61952564 100644
--- a/bsd-core/tdfx_drv.c
+++ b/bsd-core/tdfx_drv.c
@@ -69,8 +69,6 @@ tdfx_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);
diff --git a/bsd-core/via_drv.c b/bsd-core/via_drv.c
index d2a1e676..d16efc43 100644
--- a/bsd-core/via_drv.c
+++ b/bsd-core/via_drv.c
@@ -80,8 +80,6 @@ via_attach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(struct drm_device));
-
dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
M_WAITOK | M_ZERO);