diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 9dd829c..132018a 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -674,9 +674,6 @@ static int fill_alarm_string(char *buf, int count, int alarms) (alarms & DAHDI_ALARM_RECOVER) ? "RECOVERING " : "", (alarms & DAHDI_ALARM_NOTOPEN) ? "NOTOPEN " : ""); - if (len > 0) - buf[--len] = '\0'; /* strip last space */ - return len; }