mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-30 18:05:48 +01:00 
			
		
		
		
	post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning
Fix: gdc.c: In function 'gdc_test_reg_one': gdc.c:66:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
		| @@ -63,13 +63,12 @@ const static unsigned long otherpattern = 0x01234567; | |||||||
| /* test write/read og a given LIME Register */ | /* test write/read og a given LIME Register */ | ||||||
| static int gdc_test_reg_one(uint value) | static int gdc_test_reg_one(uint value) | ||||||
| { | { | ||||||
| 	int ret; |  | ||||||
| 	uint read_value; | 	uint read_value; | ||||||
|  |  | ||||||
| 	/* write test pattern */ | 	/* write test pattern */ | ||||||
| 	out_be32((void *)GDC_SCRATCH_REG, value); | 	out_be32((void *)GDC_SCRATCH_REG, value); | ||||||
| 	/* read other location (protect against data lines capacity) */ | 	/* read other location (protect against data lines capacity) */ | ||||||
| 	ret = in_be32((void *)GDC_RAM_START); | 	in_be32((void *)GDC_RAM_START); | ||||||
| 	/* verify test pattern */ | 	/* verify test pattern */ | ||||||
| 	read_value = in_be32((void *)GDC_SCRATCH_REG); | 	read_value = in_be32((void *)GDC_SCRATCH_REG); | ||||||
| 	if (read_value != value) { | 	if (read_value != value) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user