Merge tag 'iio-for-4.1a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio...
[firefly-linux-kernel-4.4.55.git] / tools / iio / generic_buffer.c
index 01266c2556da995c6fe4a8d5ba4c95b42cbb7df0..f805493be3ebb1097965241baa7be50f045ae67d 100644 (file)
@@ -18,8 +18,6 @@
  *
  */
 
-#define _GNU_SOURCE
-
 #include <unistd.h>
 #include <stdlib.h>
 #include <dirent.h>
@@ -73,7 +71,7 @@ void print2byte(int input, struct iio_channel_info *info)
         * Shift before conversion to avoid sign extension
         * of left aligned data
         */
-       input = input >> info->shift;
+       input >>= info->shift;
        if (info->is_signed) {
                int16_t val = input;