Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
819abf29 a5ba1d95

+1 -2
+1 -2
drivers/tty/serial/jsm/jsm_tty.c
··· 430 430 { 431 431 int i, rc; 432 432 unsigned int line; 433 - struct jsm_channel *ch; 434 433 435 434 if (!brd) 436 435 return -ENXIO; ··· 443 444 brd->nasync = brd->maxports; 444 445 445 446 /* Set up channel variables */ 446 - for (i = 0; i < brd->nasync; i++, ch = brd->channels[i]) { 447 + for (i = 0; i < brd->nasync; i++) { 447 448 448 449 if (!brd->channels[i]) 449 450 continue;