X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fsmp.c;fp=libringbuffer%2Fsmp.c;h=8a65c40568b2483cd82c2a010c88c7c5155c4ecc;hb=7e06b1378b72fb9c3c28a91162dbae9801c5479f;hp=73804b66427f409626b532d1b1e12b01f5f124ff;hpb=d4126f5a34ddc24eab3803c8d4bc06f8728900c4;p=lttng-ust.git diff --git a/libringbuffer/smp.c b/libringbuffer/smp.c index 73804b66..8a65c405 100644 --- a/libringbuffer/smp.c +++ b/libringbuffer/smp.c @@ -142,7 +142,7 @@ int get_possible_cpu_mask_from_sysfs(char *buf, size_t max_bytes) 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.