X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcompat-smp.h;fp=src%2Fcompat-smp.h;h=5da8d6a03d7e7fd9b4b65e9617533c9b039bb436;hb=9922f33e29869ac23296a857fd6a9f813d24ad4a;hp=2f204d74ffadd34887b0379e94a5c9474c8ddc06;hpb=02a024dc4cbadddb8700aca7b3f6cf27f69e8f3f;p=urcu.git diff --git a/src/compat-smp.h b/src/compat-smp.h index 2f204d7..5da8d6a 100644 --- a/src/compat-smp.h +++ b/src/compat-smp.h @@ -164,7 +164,7 @@ static inline int get_cpu_mask_from_sysfs(char *buf, size_t max_bytes, const cha total_bytes_read += bytes_read; assert(total_bytes_read <= max_bytes); - } while (max_bytes > total_bytes_read && bytes_read > 0); + } while (max_bytes > total_bytes_read && bytes_read != 0); /* * Make sure the mask read is a null terminated string.