diff options
author | Dan Fandrich <danf@mageia.org> | 2024-01-05 01:32:07 -0800 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-01-05 01:54:26 -0800 |
commit | 0290f6c1bc88fe6e7fafb46d7630867593520f91 (patch) | |
tree | 5a89a5bf69267f3bbbd6ef194fd28aa486fa83a6 /tools | |
parent | 08e0488dbb9e0d1cc61955d072b93953a6de6c26 (diff) | |
download | drakx-0290f6c1bc88fe6e7fafb46d7630867593520f91.tar drakx-0290f6c1bc88fe6e7fafb46d7630867593520f91.tar.gz drakx-0290f6c1bc88fe6e7fafb46d7630867593520f91.tar.bz2 drakx-0290f6c1bc88fe6e7fafb46d7630867593520f91.tar.xz drakx-0290f6c1bc88fe6e7fafb46d7630867593520f91.zip |
Delete some unused variables
Diffstat (limited to 'tools')
-rw-r--r-- | tools/serial_probe/serial.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/serial_probe/serial.c b/tools/serial_probe/serial.c index eb9d1f1cf..5159c3dae 100644 --- a/tools/serial_probe/serial.c +++ b/tools/serial_probe/serial.c @@ -663,7 +663,6 @@ static int parse_pnp_string( unsigned char *pnp_id_string, int pnp_len, unsigned char *endfield; unsigned char *temppos; unsigned char *pnp_string; - unsigned char end_char; int no_more_extensions=0; int stage; @@ -719,7 +718,6 @@ static int parse_pnp_string( unsigned char *pnp_id_string, int pnp_len, /* setup end character we are looking for based on the start character */ if (start == p2) { pnp_id->xlate_6bit = 1; - end_char = EndPnP2; /* we need to xlate data in PnP fields */ /* remember to skip the revision fields (bytes 1 and 2 after start) */ temppos=start; @@ -734,7 +732,6 @@ static int parse_pnp_string( unsigned char *pnp_id_string, int pnp_len, } } else { pnp_id->xlate_6bit = 0; - end_char = EndPnP1; } /* move everything before the start of the PnP block */ @@ -881,7 +878,6 @@ struct device *serialProbe(enum deviceClass probeClass, int probeFlags, int fd; int temp; int pnp_strlen; - int devicetype=-1; unsigned char pnp_string[100]; char port[20]; struct termios origattr; @@ -978,7 +974,6 @@ struct device *serialProbe(enum deviceClass probeClass, int probeFlags, /* try twiddling RS232 control lines and see if it talks to us */ - devicetype=-1; pnp_strlen = 0; if (attempt_pnp_retrieve( fd, pnp_string, &pnp_strlen, sizeof(pnp_string) - 1 ) == PNP_COM_FATAL) |