scpi: Remove redundant newline removal in sr_scpi_get_hw_id().

This commit is contained in:
Martin Ling 2014-01-17 14:17:50 +00:00
parent 334fbc2ac0
commit 7788579e66
1 changed files with 0 additions and 5 deletions

View File

@ -604,7 +604,6 @@ SR_PRIV int sr_scpi_get_hw_id(struct sr_scpi_dev_inst *scpi,
{
int num_tokens;
char *response;
char *newline;
gchar **tokens;
struct sr_scpi_hw_info *hw_info;
@ -617,10 +616,6 @@ SR_PRIV int sr_scpi_get_hw_id(struct sr_scpi_dev_inst *scpi,
sr_info("Got IDN string: '%s'", response);
/* Remove trailing newline if present. */
if ((newline = g_strrstr(response, "\n")))
newline[0] = '\0';
/*
* The response to a '*IDN?' is specified by the SCPI spec. It contains
* a comma-separated list containing the manufacturer name, instrument