mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
n_hdlc: remove unused flags
They are only set to 0 and never read. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200219084118.26491-9-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5f2895143d
commit
a1274b26ac
1 changed files with 1 additions and 4 deletions
|
@ -124,7 +124,6 @@ struct n_hdlc_buf_list {
|
||||||
/**
|
/**
|
||||||
* struct n_hdlc - per device instance data structure
|
* struct n_hdlc - per device instance data structure
|
||||||
* @magic - magic value for structure
|
* @magic - magic value for structure
|
||||||
* @flags - miscellaneous control flags
|
|
||||||
* @tty - ptr to TTY structure
|
* @tty - ptr to TTY structure
|
||||||
* @backup_tty - TTY to use if tty gets closed
|
* @backup_tty - TTY to use if tty gets closed
|
||||||
* @tbusy - reentrancy flag for tx wakeup code
|
* @tbusy - reentrancy flag for tx wakeup code
|
||||||
|
@ -136,7 +135,6 @@ struct n_hdlc_buf_list {
|
||||||
*/
|
*/
|
||||||
struct n_hdlc {
|
struct n_hdlc {
|
||||||
int magic;
|
int magic;
|
||||||
__u32 flags;
|
|
||||||
struct tty_struct *tty;
|
struct tty_struct *tty;
|
||||||
struct tty_struct *backup_tty;
|
struct tty_struct *backup_tty;
|
||||||
int tbusy;
|
int tbusy;
|
||||||
|
@ -808,8 +806,7 @@ static struct n_hdlc *n_hdlc_alloc(void)
|
||||||
|
|
||||||
/* Initialize the control block */
|
/* Initialize the control block */
|
||||||
n_hdlc->magic = HDLC_MAGIC;
|
n_hdlc->magic = HDLC_MAGIC;
|
||||||
n_hdlc->flags = 0;
|
|
||||||
|
|
||||||
return n_hdlc;
|
return n_hdlc;
|
||||||
|
|
||||||
} /* end of n_hdlc_alloc() */
|
} /* end of n_hdlc_alloc() */
|
||||||
|
|
Loading…
Reference in a new issue