net: ppp_asynctty_ioctl - remove dead code
Subsystems (2)
PATCH 1/1 net: ppp_asynctty_ioctl - remove dead code
ap already checked to be not null. remove useless checks.
Signed-off-by Cyrill Gorcunov <[email protected]>
---
Please review
drivers/net/ppp_async.c +0 -6
@@ -293,9 +293,6 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file, err = -EFAULT ;switch (cmd) {case PPPIOCGCHAN : - err = -ENXIO ; -if (!ap) -break ; err = -EFAULT ;if (put_user (ppp_channel_index (&ap->chan), p))break ;
@@ -303,9 +300,6 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,break ;case PPPIOCGUNIT : - err = -ENXIO ; -if (!ap) -break ; err = -EFAULT ;if (put_user (ppp_unit_number (&ap->chan), p))break ;