diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-03-20 10:30:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 17:07:34 -0400 |
commit | 0d3b88d187d02c910fce62ee4d14fb29617f21ba (patch) | |
tree | 82c5331b7b8d970fb7471cfde2d5fa59c226ec0e /drivers/net | |
parent | 30215c3b8f36cc532267615ceade3657a9bd9563 (diff) |
CAIF: fix tty->warned build error
After commit 6865ff222cca ("TTY: do not warn about setting
speed via SPD_*"), we are seeing a build error when DEBUG_FS is
enabled:
drivers/net/caif/caif_serial.c: In function 'update_tty_status':
drivers/net/caif/caif_serial.c:94:11: error: 'struct tty_struct' has no member named 'warned'
Fix the error by removing the reference to the variable as it was
not set in the last decade (as documented in the changelog of the
commit above).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Sjur Braendeland <sjur.brandeland@stericsson.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/caif/caif_serial.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c index d1bf0ff93ae0..be90debc7cd1 100644 --- a/drivers/net/caif/caif_serial.c +++ b/drivers/net/caif/caif_serial.c | |||
@@ -90,8 +90,7 @@ static inline void update_tty_status(struct ser_device *ser) | |||
90 | ser->tty->stopped << 5 | | 90 | ser->tty->stopped << 5 | |
91 | ser->tty->flow_stopped << 3 | | 91 | ser->tty->flow_stopped << 3 | |
92 | ser->tty->packet << 2 | | 92 | ser->tty->packet << 2 | |
93 | ser->tty->port->low_latency << 1 | | 93 | ser->tty->port->low_latency << 1; |
94 | ser->tty->warned; | ||
95 | } | 94 | } |
96 | static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) | 95 | static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) |
97 | { | 96 | { |