Commit 1387f53
committed
ionic: Fix maybe-uninitialized warning for wqe_size in sq/rq init
Restructure the expdb WQE size logic in sq_init and rq_init to compute
the non-expdb size first, then conditionally upgrade to the expdb size
if supported. This eliminates the -Werror=maybe-uninitialized warning
on wqe_size and simplifies the control flow.
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>1 parent d499942 commit 1387f53
1 file changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
1677 | 1680 | | |
1678 | | - | |
1679 | | - | |
| 1681 | + | |
| 1682 | + | |
1680 | 1683 | | |
1681 | | - | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
1682 | 1687 | | |
1683 | 1688 | | |
1684 | 1689 | | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | 1692 | | |
| |||
1754 | 1755 | | |
1755 | 1756 | | |
1756 | 1757 | | |
| 1758 | + | |
| 1759 | + | |
1757 | 1760 | | |
1758 | | - | |
| 1761 | + | |
1759 | 1762 | | |
1760 | | - | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1761 | 1766 | | |
1762 | 1767 | | |
1763 | 1768 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | 1769 | | |
1768 | 1770 | | |
1769 | 1771 | | |
| |||
0 commit comments