diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-08-09 14:37:39 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 12:23:05 -0700 |
commit | 35edf11bed147a8fe1df529035ccb551d671916d (patch) | |
tree | 776fbb0d3e8d39eaa421048b094b191450815fd6 /drivers/staging/dgap | |
parent | 274d8b35f88079870f1691413be7ce4341d9f87b (diff) | |
download | linux-stable-35edf11bed147a8fe1df529035ccb551d671916d.tar.gz linux-stable-35edf11bed147a8fe1df529035ccb551d671916d.tar.bz2 linux-stable-35edf11bed147a8fe1df529035ccb551d671916d.zip |
staging: dgap: cleanup duplicated warning message on dgap_tty_init()
If true_count is not same with brd->nasync, warning messages are
printed. But it has duplicated messages within if statement.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index b1253c01acce..51f9ebc9e3ce 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -1374,19 +1374,14 @@ static int dgap_tty_init(struct board_t *brd) brd->nasync = brd->maxports; if (true_count != brd->nasync) { - if ((brd->type == PPCM) && (true_count == 64)) { - pr_warn("dgap: %s configured for %d ports, has %d ports.\n", - brd->name, brd->nasync, true_count); - pr_warn("dgap: Please make SURE the EBI cable running from the card\n"); - pr_warn("dgap: to each EM module is plugged into EBI IN!\n"); - } else if ((brd->type == PPCM) && (true_count == 0)) { - pr_warn("dgap: %s configured for %d ports, has %d ports.\n", - brd->name, brd->nasync, true_count); + pr_warn("dgap: %s configured for %d ports, has %d ports.\n", + brd->name, brd->nasync, true_count); + + if ((brd->type == PPCM) && + (true_count == 64 || true_count == 0)) { pr_warn("dgap: Please make SURE the EBI cable running from the card\n"); pr_warn("dgap: to each EM module is plugged into EBI IN!\n"); - } else - pr_warn("dgap: %s configured for %d ports, has %d ports.\n", - brd->name, brd->nasync, true_count); + } brd->nasync = true_count; |