diff options
author | Tobin C. Harding <me@tobin.cc> | 2017-03-13 12:37:34 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-14 06:27:31 +0800 |
commit | 8f86b9118427949b902310fdfa479dfdb25a6052 (patch) | |
tree | 2fa777e7167ea55b80d818201b3539113f071d8c /drivers/staging/dgnc/dgnc_tty.c | |
parent | 7261fb9bcb40251e4d3153f30624bffe1bba914d (diff) |
staging: dgnc: remove explicit cast
Function return type is 'int'. Returned variable is of type
'uint'. uint can be implicitly converted to int. Most significant bit
is not set so there is no risk in implicit conversion.
Remove unnecessary type cast.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_tty.c')
-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 c58eaa9f9a79..1861bd59fbe4 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -1411,7 +1411,7 @@ static int dgnc_tty_chars_in_buffer(struct tty_struct *tty) else chars = thead - ttail + WQUEUESIZE; - return (int)chars; + return chars; } /* |