Commit 565c5095 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

staging: dgap: dgap_fep5: Remove braces around single line statements

Single line statements do not require braces.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8515652
...@@ -1229,29 +1229,24 @@ int dgap_param(struct tty_struct *tty) ...@@ -1229,29 +1229,24 @@ int dgap_param(struct tty_struct *tty)
uchar mval; uchar mval;
uchar hflow; uchar hflow;
if (!tty || tty->magic != TTY_MAGIC) { if (!tty || tty->magic != TTY_MAGIC)
return (-ENXIO); return (-ENXIO);
}
un = (struct un_t *) tty->driver_data; un = (struct un_t *) tty->driver_data;
if (!un || un->magic != DGAP_UNIT_MAGIC) { if (!un || un->magic != DGAP_UNIT_MAGIC)
return (-ENXIO); return (-ENXIO);
}
ch = un->un_ch; ch = un->un_ch;
if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) { if (!ch || ch->magic != DGAP_CHANNEL_MAGIC)
return (-ENXIO); return (-ENXIO);
}
bd = ch->ch_bd; bd = ch->ch_bd;
if (!bd || bd->magic != DGAP_BOARD_MAGIC) { if (!bd || bd->magic != DGAP_BOARD_MAGIC)
return (-ENXIO); return (-ENXIO);
}
bs = ch->ch_bs; bs = ch->ch_bs;
if (bs == 0) { if (bs == 0)
return (-ENXIO); return (-ENXIO);
}
DPR_PARAM(("param start: tdev: %x cflags: %x oflags: %x iflags: %x\n", DPR_PARAM(("param start: tdev: %x cflags: %x oflags: %x iflags: %x\n",
ch->ch_tun.un_dev, ch->ch_c_cflag, ch->ch_c_oflag, ch->ch_c_iflag)); ch->ch_tun.un_dev, ch->ch_c_cflag, ch->ch_c_oflag, ch->ch_c_iflag));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment