mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	parport: ieee1284: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									faa1a47388
								
							
						
					
					
						commit
						34bcfdac8c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -267,7 +267,7 @@ static void parport_ieee1284_terminate (struct parport *port) | ||||||
| 			port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; | 			port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		/* fall-though.. */ | 		/* fall through */ | ||||||
| 
 | 
 | ||||||
| 	default: | 	default: | ||||||
| 		/* Terminate from all other modes. */ | 		/* Terminate from all other modes. */ | ||||||
|  | @ -615,6 +615,7 @@ ssize_t parport_write (struct parport *port, const void *buffer, size_t len) | ||||||
| 	case IEEE1284_MODE_NIBBLE: | 	case IEEE1284_MODE_NIBBLE: | ||||||
| 	case IEEE1284_MODE_BYTE: | 	case IEEE1284_MODE_BYTE: | ||||||
| 		parport_negotiate (port, IEEE1284_MODE_COMPAT); | 		parport_negotiate (port, IEEE1284_MODE_COMPAT); | ||||||
|  | 		/* fall through */ | ||||||
| 	case IEEE1284_MODE_COMPAT: | 	case IEEE1284_MODE_COMPAT: | ||||||
| 		DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n", | 		DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n", | ||||||
| 			 port->name); | 			 port->name); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Gustavo A. R. Silva
						Gustavo A. R. Silva