staging: dgnc: remove redundant local variable for
The local variable "bd" was not used in dgnc_carrier() function. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
290e3abacc
commit
3ca4b20a76
@ -640,19 +640,12 @@ exit_unlock:
|
||||
************************************************************************/
|
||||
void dgnc_carrier(struct channel_t *ch)
|
||||
{
|
||||
struct dgnc_board *bd;
|
||||
|
||||
int virt_carrier = 0;
|
||||
int phys_carrier = 0;
|
||||
|
||||
if (!ch || ch->magic != DGNC_CHANNEL_MAGIC)
|
||||
return;
|
||||
|
||||
bd = ch->ch_bd;
|
||||
|
||||
if (!bd || bd->magic != DGNC_BOARD_MAGIC)
|
||||
return;
|
||||
|
||||
if (ch->ch_mistat & UART_MSR_DCD)
|
||||
phys_carrier = 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user