summaryrefslogtreecommitdiffstats
path: root/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'base.c')
-rw-r--r--base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base.c b/base.c
index 29363c1..6a24bda 100644
--- a/base.c
+++ b/base.c
@@ -179,7 +179,7 @@ int ipecamera_set_buffer_size(ipecamera_t *ctx, int size) {
return PCILIB_ERROR_INVALID_REQUEST;
}
- if (((size^(size-1)) < size) < size) {
+ if ((size^(size-1)) < size) {
pcilib_error("The buffer size is not power of 2");
}