提交 819abf29 编写于 作者: C Colin Ian King 提交者: Greg Kroah-Hartman

tty: serial: jsm: remove redundant pointer ch

Pointer ch is being assigned but is never used hence it is redundant
and can be removed.

Cleans up clang warning:
warning: variable 'ch' set but not used [-Wunused-but-set-variable]
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a5ba1d95
...@@ -430,7 +430,6 @@ int jsm_uart_port_init(struct jsm_board *brd) ...@@ -430,7 +430,6 @@ int jsm_uart_port_init(struct jsm_board *brd)
{ {
int i, rc; int i, rc;
unsigned int line; unsigned int line;
struct jsm_channel *ch;
if (!brd) if (!brd)
return -ENXIO; return -ENXIO;
...@@ -444,7 +443,7 @@ int jsm_uart_port_init(struct jsm_board *brd) ...@@ -444,7 +443,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
brd->nasync = brd->maxports; brd->nasync = brd->maxports;
/* Set up channel variables */ /* Set up channel variables */
for (i = 0; i < brd->nasync; i++, ch = brd->channels[i]) { for (i = 0; i < brd->nasync; i++) {
if (!brd->channels[i]) if (!brd->channels[i])
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册