diff options
author | Wolfgang Denk <wd@denx.de> | 2008-01-10 00:55:14 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-10 00:55:14 +0100 |
commit | d3a6532cbe263d992f49e86ac95bede28e96f9c8 (patch) | |
tree | 687561d091203e912658d34422fb969eb7ab3744 /api_examples | |
parent | 694976afa5dcc5c4e7eaeaa0612eac35cd5bd8ec (diff) | |
download | u-boot-imx-d3a6532cbe263d992f49e86ac95bede28e96f9c8.zip u-boot-imx-d3a6532cbe263d992f49e86ac95bede28e96f9c8.tar.gz u-boot-imx-d3a6532cbe263d992f49e86ac95bede28e96f9c8.tar.bz2 |
Coding Style cleanup; update CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'api_examples')
-rw-r--r-- | api_examples/Makefile | 2 | ||||
-rw-r--r-- | api_examples/demo.c | 2 | ||||
-rw-r--r-- | api_examples/glue.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/api_examples/Makefile b/api_examples/Makefile index 5812bcd..cb49a9e 100644 --- a/api_examples/Makefile +++ b/api_examples/Makefile @@ -71,7 +71,7 @@ $(BIN): $(obj)%.bin: $(obj)% $(OBJCOPY) -O binary $< $@ 2>/dev/null -$(obj)crc32.c: +$(obj)crc32.c: @rm -f $(obj)crc32.c ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c diff --git a/api_examples/demo.c b/api_examples/demo.c index a4aeef1..eae9712 100644 --- a/api_examples/demo.c +++ b/api_examples/demo.c @@ -88,7 +88,7 @@ int main(int argc, char *argv[]) /* enumerate devices */ printf("\n*** Enumerate devices ***\n"); devs_no = ub_dev_enum(); - + printf("Number of devices found: %d\n", devs_no); if (devs_no == 0) return -1; diff --git a/api_examples/glue.c b/api_examples/glue.c index 7598369..2bf47ae 100644 --- a/api_examples/glue.c +++ b/api_examples/glue.c @@ -150,7 +150,7 @@ struct sys_info * ub_get_sys_info(void) * timing * ****************************************/ - + void ub_udelay(unsigned long usec) { syscall(API_UDELAY, NULL, &usec); @@ -298,7 +298,7 @@ int ub_dev_read(int handle, void *buf, lbasize_t len, lbastart_t start) if (!syscall(API_DEV_READ, &err, di, buf, &len, &start, &act_len)) return -1; - if (err) + if (err) return err; if (act_len != len) |