Skip to contentSkip to conversation

drm/radeon/r420: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 12, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/r420: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Addresses-Coverity-ID: 1357317 ("Missing break in switch")

---
 drivers/gpu/drm/radeon/r420.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/radeon/r420.c +1 -0
index 45e1d4e..2318d9e 100644
@@ -109,6 +109,7 @@ void r420_pipes_init(struct radeon_device *rdev)
 	default:
 		/* force to 1 pipe */
 		num_pipes = 1;
+		/* fall through */
 	case 1:
 		tmp = (0 << 1);
 		break;
Signature · 1 line
2.7.4