diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-10-03 15:22:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 07:52:32 (GMT) |
commit | 2d9920eca404c785483598980547ff3be58eddd9 (patch) | |
tree | 639a050f44dfd127c28f43fc55343e096fbf879e /drivers/staging/dgnc/dgnc_cls.c | |
parent | 851f306d6e42a7573dd5a9425ce929ff10215be6 (diff) | |
download | linux-2d9920eca404c785483598980547ff3be58eddd9.tar.xz |
staging: dgnc: remove unused variables
These variables were only assigned some values but were never used.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_cls.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_cls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c index 76fe4b2..24fc28c 100644 --- a/drivers/staging/dgnc/dgnc_cls.c +++ b/drivers/staging/dgnc/dgnc_cls.c @@ -854,10 +854,8 @@ static void cls_copy_data_from_uart_to_queue(struct channel_t *ch) * Discard character if we are ignoring the error mask. */ if (linestatus & error_mask) { - unsigned char discard; - linestatus = 0; - discard = readb(&ch->ch_cls_uart->txrx); + readb(&ch->ch_cls_uart->txrx); continue; } |