diff options
| author | Graeme Russ <graeme.russ@gmail.com> | 2011-11-08 02:33:15 +0000 | 
|---|---|---|
| committer | Graeme Russ <graeme.russ@gmail.com> | 2011-11-29 21:03:43 +1100 | 
| commit | 83088afbba0c142fda5313866abd1e679d0f9e78 (patch) | |
| tree | dc968778c47d8aa2f915e928838b5bd72b71ff18 /arch/x86/lib/bootm.c | |
| parent | 01a0f5a1ebba7eeccf13fc5992ed59e8614fd58a (diff) | |
| download | olio-uboot-2014.01-83088afbba0c142fda5313866abd1e679d0f9e78.tar.xz olio-uboot-2014.01-83088afbba0c142fda5313866abd1e679d0f9e78.zip | |
cosmetic: checkpatch cleanup of arch/x86/lib/*.c
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'arch/x86/lib/bootm.c')
| -rw-r--r-- | arch/x86/lib/bootm.c | 23 | 
1 files changed, 12 insertions, 11 deletions
| diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index a21a21f1f..836803cbe 100644 --- a/arch/x86/lib/bootm.c +++ b/arch/x86/lib/bootm.c @@ -32,7 +32,8 @@  #include <asm/zimage.h>  /*cmd_boot.c*/ -int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images) +int do_bootm_linux(int flag, int argc, char * const argv[], +		bootm_headers_t *images)  {  	void		*base_ptr;  	ulong		os_data, os_len; @@ -48,41 +49,41 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima  	if (images->legacy_hdr_valid) {  		hdr = images->legacy_hdr_os; -		if (image_check_type (hdr, IH_TYPE_MULTI)) { +		if (image_check_type(hdr, IH_TYPE_MULTI)) {  			/* if multi-part image, we need to get first subimage */ -			image_multi_getimg (hdr, 0, &os_data, &os_len); +			image_multi_getimg(hdr, 0, &os_data, &os_len);  		} else {  			/* otherwise get image data */ -			os_data = image_get_data (hdr); -			os_len = image_get_data_size (hdr); +			os_data = image_get_data(hdr); +			os_len = image_get_data_size(hdr);  		}  #if defined(CONFIG_FIT)  	} else if (images->fit_uname_os) { -		ret = fit_image_get_data (images->fit_hdr_os, +		ret = fit_image_get_data(images->fit_hdr_os,  					images->fit_noffset_os, &data, &len);  		if (ret) { -			puts ("Can't get image data/size!\n"); +			puts("Can't get image data/size!\n");  			goto error;  		}  		os_data = (ulong)data;  		os_len = (ulong)len;  #endif  	} else { -		puts ("Could not find kernel image!\n"); +		puts("Could not find kernel image!\n");  		goto error;  	} -	base_ptr = load_zimage ((void*)os_data, os_len, +	base_ptr = load_zimage((void *)os_data, os_len,  			images->rd_start, images->rd_end - images->rd_start, 0);  	if (NULL == base_ptr) { -		printf ("## Kernel loading failed ...\n"); +		printf("## Kernel loading failed ...\n");  		goto error;  	}  #ifdef DEBUG -	printf ("## Transferring control to Linux (at address %08x) ...\n", +	printf("## Transferring control to Linux (at address %08x) ...\n",  		(u32)base_ptr);  #endif |