diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-02 10:38:35 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-02 10:38:35 +0000 |
commit | ce067087ed3da82f031e1e2c4a115f2fa3e1a016 (patch) | |
tree | ee6d514a3c1e53f8ec32065e94788df80a3d266a /sys/dev/pci | |
parent | fbc38f0c7c7513e4cc3723a070fbbcc0a25af328 (diff) |
Never return nonzero in a device activate method invoked with DVACT_ACTIVATE,
for this prevents it to be invoked with DVACT_DEACTIVATE later. This had
been sweeped some time ago already, but bad constructs crept in again.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 88491ba583b..b206eadf2e3 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -222,7 +222,6 @@ drm_activate(struct device *self, enum devact act) { switch (act) { case DVACT_ACTIVATE: - return (EOPNOTSUPP); break; case DVACT_DEACTIVATE: |