drivers/gpu/drm/i915/i915_irq.c: fix warning
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 1 Dec 2008 21:14:08 +0000 (13:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 03:55:25 +0000 (19:55 -0800)
drivers/gpu/drm/i915/i915_irq.c: In function 'i915_disable_pipestat':
drivers/gpu/drm/i915/i915_irq.c:101: warning: control may reach end of non-void function 'i915_pipestat' being inlined

Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/i915_irq.c

index fe3d9cc72bf510403c797398c2cafa00eeecf8c2..69b9a42da95ed720e85841c00ab7580fdff94830 100644 (file)
@@ -78,7 +78,7 @@ i915_pipestat(int pipe)
                return PIPEASTAT;
        if (pipe == 1)
                return PIPEBSTAT;
-       BUG_ON(1);
+       BUG();
 }
 
 void