[PATCH] fireware: Remove always true condition
From: Ding Xiang
Date: Thu Jun 20 2019 - 05:46:48 EST
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@xxxxxxxxxxxxxxxxxxxx>
---
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