summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/mga_drv.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2008-10-04 14:51:14 +0000
committerrnoland <rnoland@FreeBSD.org>2008-10-04 14:51:14 +0000
commit848f285a655e18bcbd21886fa35dbab3286b54e4 (patch)
tree9bd8c901aa0c07d251f75e92bb72150b4e9ebb74 /sys/dev/drm/mga_drv.c
parente416dd643a947a6b0b74b8cd709467a599dc72c8 (diff)
downloadFreeBSD-src-848f285a655e18bcbd21886fa35dbab3286b54e4.zip
FreeBSD-src-848f285a655e18bcbd21886fa35dbab3286b54e4.tar.gz
Don't explicitly bzer driver softc
new-bus already handles this for us. Suggested by jhb@ Approved by: jhb (mentor)
Diffstat (limited to 'sys/dev/drm/mga_drv.c')
-rw-r--r--sys/dev/drm/mga_drv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/drm/mga_drv.c b/sys/dev/drm/mga_drv.c
index f3d9cae..308269a 100644
--- a/sys/dev/drm/mga_drv.c
+++ b/sys/dev/drm/mga_drv.c
@@ -130,8 +130,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);
OpenPOWER on IntegriCloud