[FreeBSD] Don't explicitly bzero driver softc.

This is already handled for us.

Suggested by John Baldwin
This commit is contained in:
Robert Noland 2008-10-03 14:11:20 -04:00
parent 9c0ce38df3
commit 60cf3a4db4
9 changed files with 0 additions and 18 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);