Fix error: procfs/fs_procfscritmon.c:184:10: error: variable 'remaining' set but not used [-Werror,-Wunused-but-set-variable]

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-09-11 18:14:34 +08:00 committed by Xiang Xiao
parent 9e43a4d31c
commit e5ee8f7470
1 changed files with 0 additions and 3 deletions

View File

@ -181,12 +181,10 @@ static ssize_t critmon_read_cpu(FAR struct critmon_file_s *attr,
FAR off_t *offset, int cpu)
{
struct timespec maxtime;
size_t remaining;
size_t linesize;
size_t copysize;
size_t totalsize;
remaining = buflen;
totalsize = 0;
/* Convert the for maximum time pre-emption disabled */
@ -214,7 +212,6 @@ static ssize_t critmon_read_cpu(FAR struct critmon_file_s *attr,
totalsize += copysize;
buffer += copysize;
remaining -= copysize;
if (totalsize >= buflen)
{