From: Wolfram Sang Date: Sun, 3 Jan 2016 21:27:45 +0000 (+0100) Subject: dmm: vc870: drop unused variable X-Git-Tag: libsigrok-0.4.0~33 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3591481e871eec154a764e1c78004095144de5b5;p=libsigrok.git dmm: vc870: drop unused variable There is no status bit for RMS. We know about RMS if certain modes are active. So, drop this superfluous variable. Signed-off-by: Wolfram Sang --- diff --git a/src/dmm/vc870.c b/src/dmm/vc870.c index fc795678..2663260b 100644 --- a/src/dmm/vc870.c +++ b/src/dmm/vc870.c @@ -280,7 +280,6 @@ static void parse_flags(const uint8_t *buf, struct vc870_info *info) /* Byte 22: Always '\n' (newline, 0x0a, 10) */ info->is_auto = !info->is_manu; - info->is_rms = TRUE; } static void handle_flags(struct sr_datafeed_analog_old *analog, diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index 09a4f5c5..3c18ffaf 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -1202,7 +1202,7 @@ struct vc870_info { gboolean is_light, is_usb, is_warning, is_auto_power, is_misplug_warn; gboolean is_lo, is_hi, is_open2; - gboolean is_frequency, is_dual_display, is_auto, is_rms; + gboolean is_frequency, is_dual_display, is_auto; }; SR_PRIV gboolean sr_vc870_packet_valid(const uint8_t *buf);