浏览代码

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>
Tobin C. Harding 8 年之前
父节点
当前提交
8f86b91184
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/dgnc/dgnc_tty.c

+ 1 - 1
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;
 }
 
 /*