qemu-img: Remove redundancy "ret = -1"
In this case, 'ret' is already '-1', so need not do it again. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
		
							parent
							
								
									a9dd38db68
								
							
						
					
					
						commit
						b847ae2d60
					
				@ -246,7 +246,6 @@ static int read_password(char *buf, int buf_size)
 | 
				
			|||||||
            if (errno == EAGAIN || errno == EINTR) {
 | 
					            if (errno == EAGAIN || errno == EINTR) {
 | 
				
			||||||
                continue;
 | 
					                continue;
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                ret = -1;
 | 
					 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else if (ret == 0) {
 | 
					        } else if (ret == 0) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user