The lp.h included earlier in the tunelp.c has the definitions that were
checked, so these statements could have not been false and such
impossible conditions does not need to be checked.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
show_irq = 0;
}
break;
-#ifdef LPGETSTATUS
case 'o':
cmds->op = LPABORTOPEN;
cmds->val = get_onoff(optarg);
cmds = cmds->next;
cmds->next = 0;
break;
-#endif
-#ifdef LPRESET
case 'r':
cmds->op = LPRESET;
cmds->val = 0;
cmds = cmds->next;
cmds->next = 0;
break;
-#endif
-#ifdef LPTRUSTIRQ
case 'T':
/* Note: this will do the wrong thing on
* 2.0.36 when compiled under 2.2.x
cmds = cmds->next;
cmds->next = 0;
break;
-#endif
case 'v':
case 'V':
printf(UTIL_LINUX_VERSION);
cmds = cmdst;
while (cmds->next) {
-#ifdef LPGETSTATUS
if (cmds->op == LPGETSTATUS) {
status = 0xdeadbeef;
retval = ioctl(fd, LPGETSTATUS - offset, &status);
printf("\n");
}
} else
-#endif /* LPGETSTATUS */
if (ioctl(fd, cmds->op - offset, cmds->val) < 0)
warn(_("ioctl failed"));
cmdst = cmds;