Merge tag 'iio-for-4.1a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio...
[cascardo/linux.git] / tools / iio / generic_buffer.c
index 8f8f058..f805493 100644 (file)
@@ -71,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;