i2c: ismt: add error return code in probe()
Return error code in the error case, and not success. Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
		
					parent
					
						
							
								7be60f2bfd
							
						
					
				
			
			
				commit
				
					
						370257b287
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -879,6 +879,7 @@ ismt_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 | 
			
		|||
						 DMA_BIT_MASK(32)) != 0)) {
 | 
			
		||||
			dev_err(&pdev->dev, "pci_set_dma_mask fail %p\n",
 | 
			
		||||
				pdev);
 | 
			
		||||
			err = -ENODEV;
 | 
			
		||||
			goto fail;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue