staging: dgnc: remove explicit cast
authorTobin C. Harding <me@tobin.cc>
Mon, 13 Mar 2017 01:37:34 +0000 (12:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2017 22:27:31 +0000 (06:27 +0800)
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>
drivers/staging/dgnc/dgnc_tty.c

index c58eaa9f9a7908aadab6871af7e4e60181cdbc3d..1861bd59fbe4d708d2a24f9fae4f75f8935d8c52 100644 (file)
@@ -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;
 }
 
 /*