diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 13:55:45 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:56:23 -0700 |
commit | d09c1b96a731639436402bf0d957b974f4eed6b8 (patch) | |
tree | bc0f5b02851c83544100bfc3f7b82aebe71fbe2f /drivers/staging/dgnc | |
parent | 51c826f0733479a44407a7bb28b1c160ec1a19f3 (diff) | |
download | blackbird-obmc-linux-d09c1b96a731639436402bf0d957b974f4eed6b8.tar.gz blackbird-obmc-linux-d09c1b96a731639436402bf0d957b974f4eed6b8.zip |
staging: dgnc: dgnc_tty: Remove useless initialisation
Remove intialisation of a variable that is immediately reassigned.
The semantic patch used to find this is:
// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
// </smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 4ac9092da392..48e4b90578c1 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -838,7 +838,7 @@ static void dgnc_set_custom_speed(struct channel_t *ch, uint newrate) void dgnc_check_queue_flow_control(struct channel_t *ch) { - int qleft = 0; + int qleft; /* Store how much space we have left in the queue */ qleft = ch->ch_r_tail - ch->ch_r_head - 1; |