Commit 3ae9959
tty: n_hdlc: simplify return from n_hdlc_tty_ioctl()
The cases in the switch() of n_hdlc_tty_ioctl() can return immediately
-- no need to store into error and return later.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119100140.830761-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 2fc541e commit 3ae9959
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | 587 | | |
589 | 588 | | |
590 | 589 | | |
| |||
603 | 602 | | |
604 | 603 | | |
605 | 604 | | |
606 | | - | |
607 | | - | |
| 605 | + | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
| |||
616 | 614 | | |
617 | 615 | | |
618 | 616 | | |
619 | | - | |
620 | | - | |
| 617 | + | |
621 | 618 | | |
622 | 619 | | |
623 | 620 | | |
| |||
628 | 625 | | |
629 | 626 | | |
630 | 627 | | |
631 | | - | |
632 | | - | |
| 628 | + | |
633 | 629 | | |
634 | | - | |
635 | | - | |
636 | 630 | | |
637 | 631 | | |
638 | 632 | | |
| |||
0 commit comments