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

staging: dgnc: fix 'line over 80 characters'

fix checkpatch.pl warning about 'line over 80 characters'.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daeseok Youn and committed by
Greg Kroah-Hartman
edd19a2f a5b90ef7

+11 -9
+11 -9
drivers/staging/dgnc/dgnc_sysfs.c
··· 189 189 DGNC_VERIFY_BOARD(p, bd); 190 190 191 191 for (i = 0; i < bd->nasync; i++) { 192 - if (bd->channels[i]->ch_open_count) { 192 + struct channel_t *ch = bd->channels[i]; 193 + 194 + if (ch->ch_open_count) { 193 195 count += snprintf(buf + count, PAGE_SIZE - count, 194 196 "%d %s %s %s %s %s %s\n", 195 - bd->channels[i]->ch_portnum, 196 - (bd->channels[i]->ch_mostat & UART_MCR_RTS) ? "RTS" : "", 197 - (bd->channels[i]->ch_mistat & UART_MSR_CTS) ? "CTS" : "", 198 - (bd->channels[i]->ch_mostat & UART_MCR_DTR) ? "DTR" : "", 199 - (bd->channels[i]->ch_mistat & UART_MSR_DSR) ? "DSR" : "", 200 - (bd->channels[i]->ch_mistat & UART_MSR_DCD) ? "DCD" : "", 201 - (bd->channels[i]->ch_mistat & UART_MSR_RI) ? "RI" : ""); 197 + ch->ch_portnum, 198 + (ch->ch_mostat & UART_MCR_RTS) ? "RTS" : "", 199 + (ch->ch_mistat & UART_MSR_CTS) ? "CTS" : "", 200 + (ch->ch_mostat & UART_MCR_DTR) ? "DTR" : "", 201 + (ch->ch_mistat & UART_MSR_DSR) ? "DSR" : "", 202 + (ch->ch_mistat & UART_MSR_DCD) ? "DCD" : "", 203 + (ch->ch_mistat & UART_MSR_RI) ? "RI" : ""); 202 204 } else { 203 205 count += snprintf(buf + count, PAGE_SIZE - count, 204 - "%d\n", bd->channels[i]->ch_portnum); 206 + "%d\n", ch->ch_portnum); 205 207 } 206 208 } 207 209 return count;