diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-21 19:32:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-21 19:32:15 -0600 |
commit | b73c2bdabb5dc418b587d7c70a502831ece7d38e (patch) | |
tree | ba85edeb70515a2962d687cd0cd2e27637a4de82 /nuttx/fs | |
parent | 704a0415eb5bd052e7821fd5b6e29ed03b722ec7 (diff) | |
download | px4-nuttx-b73c2bdabb5dc418b587d7c70a502831ece7d38e.tar.gz px4-nuttx-b73c2bdabb5dc418b587d7c70a502831ece7d38e.tar.bz2 px4-nuttx-b73c2bdabb5dc418b587d7c70a502831ece7d38e.zip |
Misc SAM4S-related changes from Bob Doison
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/procfs/fs_procfsproc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/fs/procfs/fs_procfsproc.c b/nuttx/fs/procfs/fs_procfsproc.c index 8e25dcc8e..e45182252 100644 --- a/nuttx/fs/procfs/fs_procfsproc.c +++ b/nuttx/fs/procfs/fs_procfsproc.c @@ -556,14 +556,13 @@ static ssize_t proc_loadavg(FAR struct proc_file_s *procfile, uint32_t fracpart; size_t linesize; size_t copysize; - ssize_t ret; /* Sample the counts for the thread. clock_cpuload should only fail if * the PID is not valid. This could happen if the thread exited sometime * after the procfs entry was opened. */ - ret = (ssize_t)clock_cpuload(procfile->pid, &cpuload); + (void)clock_cpuload(procfile->pid, &cpuload); /* On the simulator, you may hit cpuload.total == 0, but probably never on * real hardware. |