diff options
author | Sami Kerola | 2015-02-22 15:41:36 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-24 11:30:51 +0100 |
commit | c45c3837b6a9613a02dd15a0ce232cc1d7c99399 (patch) | |
tree | 52490883c8630ceb01de6b97a7f4ec521fdf1382 /sys-utils/tunelp.c | |
parent | tunelp: remove get_val() in favour of strtol_or_err() (diff) | |
download | kernel-qcow2-util-linux-c45c3837b6a9613a02dd15a0ce232cc1d7c99399.tar.gz kernel-qcow2-util-linux-c45c3837b6a9613a02dd15a0ce232cc1d7c99399.tar.xz kernel-qcow2-util-linux-c45c3837b6a9613a02dd15a0ce232cc1d7c99399.zip |
tunelp: remove unnecessary preprocessor directives
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>
Diffstat (limited to 'sys-utils/tunelp.c')
-rw-r--r-- | sys-utils/tunelp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 197b09359..8c70268d6 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -205,7 +205,6 @@ int main(int argc, char **argv) show_irq = 0; } break; -#ifdef LPGETSTATUS case 'o': cmds->op = LPABORTOPEN; cmds->val = get_onoff(optarg); @@ -228,8 +227,6 @@ int main(int argc, char **argv) cmds = cmds->next; cmds->next = 0; break; -#endif -#ifdef LPRESET case 'r': cmds->op = LPRESET; cmds->val = 0; @@ -237,8 +234,6 @@ int main(int argc, char **argv) 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 @@ -249,7 +244,6 @@ int main(int argc, char **argv) cmds = cmds->next; cmds->next = 0; break; -#endif case 'v': case 'V': printf(UTIL_LINUX_VERSION); @@ -290,7 +284,6 @@ int main(int argc, char **argv) cmds = cmdst; while (cmds->next) { -#ifdef LPGETSTATUS if (cmds->op == LPGETSTATUS) { status = 0xdeadbeef; retval = ioctl(fd, LPGETSTATUS - offset, &status); @@ -314,7 +307,6 @@ int main(int argc, char **argv) printf("\n"); } } else -#endif /* LPGETSTATUS */ if (ioctl(fd, cmds->op - offset, cmds->val) < 0) warn(_("ioctl failed")); cmdst = cmds; |