Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 819abf29 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5ba1d95
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -430,7 +430,6 @@ int jsm_uart_port_init(struct jsm_board *brd)
{
	int i, rc;
	unsigned int line;
	struct jsm_channel *ch;

	if (!brd)
		return -ENXIO;
@@ -444,7 +443,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
	brd->nasync = brd->maxports;

	/* 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])
			continue;