mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	spi: a3700: Remove a useless memset
Memory allocated by 'spi_alloc_master()' is already zeroed. Remove a redundant memset. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/20200802175007.703995-1-christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
		
							parent
							
								
									c3158a891b
								
							
						
					
					
						commit
						2494174e04
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -848,7 +848,6 @@ static int a3700_spi_probe(struct platform_device *pdev)
 | 
				
			||||||
	platform_set_drvdata(pdev, master);
 | 
						platform_set_drvdata(pdev, master);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spi = spi_master_get_devdata(master);
 | 
						spi = spi_master_get_devdata(master);
 | 
				
			||||||
	memset(spi, 0, sizeof(struct a3700_spi));
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spi->master = master;
 | 
						spi->master = master;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue