diff options
Diffstat (limited to 'drivers/net/cxgb4vf/t4vf_hw.c')
-rw-r--r-- | drivers/net/cxgb4vf/t4vf_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/t4vf_hw.c b/drivers/net/cxgb4vf/t4vf_hw.c index 1ef252864b9c..ea1c123f0cb4 100644 --- a/drivers/net/cxgb4vf/t4vf_hw.c +++ b/drivers/net/cxgb4vf/t4vf_hw.c | |||
@@ -163,7 +163,7 @@ int t4vf_wr_mbox_core(struct adapter *adapter, const void *cmd, int size, | |||
163 | for (i = 0; i < 500; i += ms) { | 163 | for (i = 0; i < 500; i += ms) { |
164 | if (sleep_ok) { | 164 | if (sleep_ok) { |
165 | ms = delay[delay_idx]; | 165 | ms = delay[delay_idx]; |
166 | if (delay_idx < ARRAY_SIZE(delay)) | 166 | if (delay_idx < ARRAY_SIZE(delay) - 1) |
167 | delay_idx++; | 167 | delay_idx++; |
168 | msleep(ms); | 168 | msleep(ms); |
169 | } else | 169 | } else |