]> git.baikalelectronics.ru Git - kernel.git/commit
CAIF: fix tty->warned build error
authorJiri Slaby <jslaby@suse.cz>
Wed, 20 Mar 2013 14:30:57 +0000 (15:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 21:07:34 +0000 (14:07 -0700)
commitdff13766f4a2645584294ff663caf42dc84d3a2f
tree82c5331b7b8d970fb7471cfde2d5fa59c226ec0e
parent329a71e726594f5f2f8c051e81875cfa25f41018
CAIF: fix tty->warned build error

After commit 2d978ad72e09 ("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>
drivers/net/caif/caif_serial.c