Commit 35edf11b authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 274d8b35
...@@ -1374,19 +1374,14 @@ static int dgap_tty_init(struct board_t *brd) ...@@ -1374,19 +1374,14 @@ static int dgap_tty_init(struct board_t *brd)
brd->nasync = brd->maxports; brd->nasync = brd->maxports;
if (true_count != brd->nasync) { 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", pr_warn("dgap: %s configured for %d ports, has %d ports.\n",
brd->name, brd->nasync, true_count); 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: Please make SURE the EBI cable running from the card\n");
pr_warn("dgap: to each EM module is plugged into EBI IN!\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; brd->nasync = true_count;
......
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