summaryrefslogtreecommitdiff
path: root/api_examples
diff options
context:
space:
mode:
Diffstat (limited to 'api_examples')
-rw-r--r--api_examples/Makefile2
-rw-r--r--api_examples/demo.c2
-rw-r--r--api_examples/glue.c4
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)