diff options
Diffstat (limited to 'lib/perfdata.c')
-rw-r--r-- | lib/perfdata.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/perfdata.c b/lib/perfdata.c index 1742342e..f425ffcf 100644 --- a/lib/perfdata.c +++ b/lib/perfdata.c | |||
@@ -569,9 +569,6 @@ mp_perfdata_value mp_pd_value_multiply(mp_perfdata_value left, mp_perfdata_value | |||
569 | left.pd_double = (double)left.pd_uint; | 569 | left.pd_double = (double)left.pd_uint; |
570 | left.type = PD_TYPE_DOUBLE; | 570 | left.type = PD_TYPE_DOUBLE; |
571 | break; | 571 | break; |
572 | case PD_TYPE_DOUBLE: | ||
573 | default: | ||
574 | // already there | ||
575 | } | 572 | } |
576 | 573 | ||
577 | switch (right.type) { | 574 | switch (right.type) { |
@@ -583,9 +580,6 @@ mp_perfdata_value mp_pd_value_multiply(mp_perfdata_value left, mp_perfdata_value | |||
583 | right.pd_double = (double)right.pd_uint; | 580 | right.pd_double = (double)right.pd_uint; |
584 | right.type = PD_TYPE_DOUBLE; | 581 | right.type = PD_TYPE_DOUBLE; |
585 | break; | 582 | break; |
586 | case PD_TYPE_DOUBLE: | ||
587 | default: | ||
588 | // already there | ||
589 | } | 583 | } |
590 | 584 | ||
591 | left.pd_double *= right.pd_double; | 585 | left.pd_double *= right.pd_double; |