git: 10e3e53dd4fc - main - qlxgbe: Use select_value_count variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:37 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=10e3e53dd4fc362a1e9fe00d529b84072ba7d8f1 commit 10e3e53dd4fc362a1e9fe00d529b84072ba7d8f1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:28 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:28 +0000 qlxgbe: Use select_value_count variable. --- sys/dev/qlxgbe/ql_hw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/qlxgbe/ql_hw.c b/sys/dev/qlxgbe/ql_hw.c index 9580a99c47b2..e7b91e4666e7 100644 --- a/sys/dev/qlxgbe/ql_hw.c +++ b/sys/dev/qlxgbe/ql_hw.c @@ -5176,8 +5176,7 @@ ql_rdmux2(qla_host_t *ha, read_addr = muxEntry->read_addr; - for (loop_cnt = 0; loop_cnt < muxEntry->select_value_count; - loop_cnt++) { + for (loop_cnt = 0; loop_cnt < select_value_count; loop_cnt++) { uint32_t temp_sel_val; ret = ql_rdwr_indreg32(ha, select_addr_1, &select_value_1, 0);