summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-09 15:58:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-11 15:36:30 -0700
commit565c509587666b0652690ebde9e2b7390a9e61b6 (patch)
treebd9ba7f76ab91080d3ed7dd15811f710c5aa2e99 /drivers/staging/dgap
parentd8515652ef01afb323dbdd87499c2c950ec9d324 (diff)
staging: dgap: dgap_fep5: Remove braces around single line statements
Single line statements do not require braces. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r--drivers/staging/dgap/dgap_fep5.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/staging/dgap/dgap_fep5.c b/drivers/staging/dgap/dgap_fep5.c
index 4464f02c957..5ebfcac5ceb 100644
--- a/drivers/staging/dgap/dgap_fep5.c
+++ b/drivers/staging/dgap/dgap_fep5.c
@@ -1229,29 +1229,24 @@ int dgap_param(struct tty_struct *tty)
uchar mval;
uchar hflow;
- if (!tty || tty->magic != TTY_MAGIC) {
+ if (!tty || tty->magic != TTY_MAGIC)
return (-ENXIO);
- }
un = (struct un_t *) tty->driver_data;
- if (!un || un->magic != DGAP_UNIT_MAGIC) {
+ if (!un || un->magic != DGAP_UNIT_MAGIC)
return (-ENXIO);
- }
ch = un->un_ch;
- if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) {
+ if (!ch || ch->magic != DGAP_CHANNEL_MAGIC)
return (-ENXIO);
- }
bd = ch->ch_bd;
- if (!bd || bd->magic != DGAP_BOARD_MAGIC) {
+ if (!bd || bd->magic != DGAP_BOARD_MAGIC)
return (-ENXIO);
- }
bs = ch->ch_bs;
- if (bs == 0) {
+ if (bs == 0)
return (-ENXIO);
- }
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));