staging: iio: ad2s1210: remove redundant assignment to variable negative
[platform/kernel/linux-starfive.git] / drivers / staging / iio / resolver / ad2s1210.c
index 74adb82..c0b2716 100644 (file)
@@ -499,7 +499,6 @@ static int ad2s1210_read_raw(struct iio_dev *indio_dev,
                ret = IIO_VAL_INT;
                break;
        case IIO_ANGL_VEL:
-               negative = st->rx[0] & 0x80;
                vel = be16_to_cpup((__be16 *)st->rx);
                vel >>= 16 - st->resolution;
                if (vel & 0x8000) {