[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1561023617-2218-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Thu, 20 Jun 2019 17:40:17 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: stefanr@...6.in-berlin.de
Cc: linux1394-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: [PATCH] fireware: Remove always true condition
The range of max_hops is 0~15 and gap_count_table size is 16,
so the condition is always true, just remove it.
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/firewire/core-card.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
index 54be881..3489d00 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
@@ -462,8 +462,7 @@ static void bm_work(struct work_struct *work)
* Pick a gap count from 1394a table E-1. The table doesn't cover
* the typically much larger 1394b beta repeater delays though.
*/
- if (!card->beta_repeaters_present &&
- root_node->max_hops < ARRAY_SIZE(gap_count_table))
+ if (!card->beta_repeaters_present)
gap_count = gap_count_table[root_node->max_hops];
else
gap_count = 63;
--
1.9.1
Powered by blists - more mailing lists