#include <linux/bug.h>
#include <linux/string.h>
#include <linux/types.h>
+#include <asm/byteorder.h>
#include <lttng/msgpack.h>
{
int ret;
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
ret = -1;
goto end;
}
{
int ret;
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
ret = -1;
goto end;
}
{
int ret;
size_t length = strlen(str);
- if (length < 0 || length >= (1 << 16)) {
+
+ if (length >= (1 << 16)) {
ret = -1;
goto end;
}