drivers/spi/sst: Remove unused variables
Change-Id: Ic6eb9c7dbfc5fde97f0f45f09431c617cb850c38 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32429 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							05c0455699
						
					
				
				
					commit
					6ee9ee4cab
				
			@@ -187,7 +187,7 @@ sst_byte_write(const struct spi_flash *flash, u32 offset, const void *buf)
 | 
			
		||||
static int sst_write_256(const struct spi_flash *flash, u32 offset, size_t len,
 | 
			
		||||
			const void *buf)
 | 
			
		||||
{
 | 
			
		||||
	size_t actual, chunk_len, cmd_len;
 | 
			
		||||
	size_t actual, chunk_len;
 | 
			
		||||
	unsigned long byte_addr;
 | 
			
		||||
	unsigned long page_size;
 | 
			
		||||
	int ret = 0;
 | 
			
		||||
@@ -208,7 +208,6 @@ static int sst_write_256(const struct spi_flash *flash, u32 offset, size_t len,
 | 
			
		||||
	if (ret)
 | 
			
		||||
		goto done;
 | 
			
		||||
 | 
			
		||||
	cmd_len = 4;
 | 
			
		||||
	cmd[0] = CMD_SST_AAI_WP;
 | 
			
		||||
	cmd[1] = offset >> 16;
 | 
			
		||||
	cmd[2] = offset >> 8;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user