summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-08 17:19:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-08 17:19:16 +0000
commitd7e85294918e9b3144e09ddfcd4b3aaa030e5f6a (patch)
treecd6e70ed401b8dd8a74002439e94a2a7a1952715
parent15ceb469a9c0b52519b4be9a252f5ff57f4e7f7a (diff)
better to break out of the cases
-rw-r--r--sys/dev/pci/drm/radeon_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c
index 46e5da59634..d63abff14e0 100644
--- a/sys/dev/pci/drm/radeon_drv.c
+++ b/sys/dev/pci/drm/radeon_drv.c
@@ -674,7 +674,7 @@ radeondrm_activate(struct device *arg, int act)
/* Interrupts still not supported on r600 */
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600 ||
dev->irq_enabled == 0)
- return (0);
+ break;
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS690)
RADEON_WRITE(R500_DxMODE_INT_MASK, 0);
RADEON_WRITE(RADEON_GEN_INT_CNTL, 0);
@@ -683,7 +683,7 @@ radeondrm_activate(struct device *arg, int act)
/* Interrupts still not supported on r600 */
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600 ||
dev->irq_enabled == 0)
- return (0);
+ break;
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS690)
RADEON_WRITE(R500_DxMODE_INT_MASK,
dev_priv->r500_disp_irq_reg);