Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit M...



details:   https://anonhg.NetBSD.org/src/rev/6c85255807c3
branches:  trunk
changeset: 344823:6c85255807c3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Apr 22 19:52:56 2016 +0000

description:
Mark fallthrough to suppress Coverity complaints.

CID 143119
CID 143120
CID 143121
CID 143122
CID 143123
CID 143124

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit/nouveau_subdev_devinit_nv04.c |  12 ++++++++-
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r 2b112a0d81db -r 6c85255807c3 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit/nouveau_subdev_devinit_nv04.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit/nouveau_subdev_devinit_nv04.c  Fri Apr 22 19:40:55 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit/nouveau_subdev_devinit_nv04.c  Fri Apr 22 19:52:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_subdev_devinit_nv04.c,v 1.2 2015/02/25 17:29:43 riastradh Exp $        */
+/*     $NetBSD: nouveau_subdev_devinit_nv04.c,v 1.3 2016/04/22 19:52:56 riastradh Exp $        */
 
 /*
  * Copyright (C) 2010 Francisco Jerez.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_devinit_nv04.c,v 1.2 2015/02/25 17:29:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_devinit_nv04.c,v 1.3 2016/04/22 19:52:56 riastradh Exp $");
 
 #include <subdev/vga.h>
 
@@ -121,12 +121,16 @@
        switch (reg) {
        case 0x680520:
                shift += 4;
+               /*FALLTHROUGH*/
        case 0x680508:
                shift += 4;
+               /*FALLTHROUGH*/
        case 0x680504:
                shift += 4;
+               /*FALLTHROUGH*/
        case 0x680500:
                shift += 4;
+               /*FALLTHROUGH*/
        }
 
        /*
@@ -245,12 +249,16 @@
                switch (reg1) {
                case 0x680504:
                        shift_c040 += 2;
+                       /*FALLTHROUGH*/
                case 0x680500:
                        shift_c040 += 2;
+                       /*FALLTHROUGH*/
                case 0x680520:
                        shift_c040 += 2;
+                       /*FALLTHROUGH*/
                case 0x680508:
                        shift_c040 += 2;
+                       /*FALLTHROUGH*/
                }
 
                savedc040 = nv_rd32(devinit, 0xc040);



Home | Main Index | Thread Index | Old Index