summaryrefslogtreecommitdiff
path: root/apps/examples/flash_test
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
commit797e41438176de465272bef182e035cd0fe5884a (patch)
tree3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/flash_test
parent6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff)
downloadnuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz
nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2
nuttx-797e41438176de465272bef182e035cd0fe5884a.zip
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/flash_test')
-rw-r--r--apps/examples/flash_test/flash_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/flash_test/flash_test.c b/apps/examples/flash_test/flash_test.c
index 094ad4e59..7c67580d1 100644
--- a/apps/examples/flash_test/flash_test.c
+++ b/apps/examples/flash_test/flash_test.c
@@ -107,8 +107,8 @@ int flash_test_main(int argc, char *argv[])
{
/* Perform a low-level format */
- ret = inode->u.i_bops->ioctl(inode, BIOC_LLFORMAT, 0);
- ret = inode->u.i_bops->ioctl(inode, BIOC_GETFORMAT, (unsigned long) &fmt);
+ (void)inode->u.i_bops->ioctl(inode, BIOC_LLFORMAT, 0);
+ (void)inode->u.i_bops->ioctl(inode, BIOC_GETFORMAT, (unsigned long) &fmt);
}
if (!(fmt.flags & SMART_FMT_ISFORMATTED))
@@ -182,7 +182,7 @@ int flash_test_main(int argc, char *argv[])
readwrite.offset = 0;
readwrite.count = strlen(buffer) + 1;
readwrite.buffer = (uint8_t *) buffer;
- ret = inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
+ (void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
&readwrite);
/* Print the logical sector number */
@@ -241,7 +241,7 @@ int flash_test_main(int argc, char *argv[])
readwrite.offset = 0;
readwrite.count = strlen(buffer) + 1;
readwrite.buffer = (uint8_t *) buffer;
- ret = inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
+ (void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
&readwrite);
/* Print the logical sector number */
@@ -266,7 +266,7 @@ int flash_test_main(int argc, char *argv[])
readwrite.offset = 64;
readwrite.count = strlen(buffer) + 1;
readwrite.buffer = (uint8_t *) buffer;
- ret = inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
+ (void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
&readwrite);
/* Print the logical sector number */
@@ -284,7 +284,7 @@ int flash_test_main(int argc, char *argv[])
if (sectors[x] != 0xFFFF)
{
- ret = inode->u.i_bops->ioctl(inode, BIOC_FREESECT, (unsigned long)
+ (void)inode->u.i_bops->ioctl(inode, BIOC_FREESECT, (unsigned long)
sectors[x]);
}
}