aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_qp.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c
index 11f1d99db40b..0e9ef24f6638 100644
--- a/drivers/infiniband/hw/mthca/mthca_qp.c
+++ b/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -1591,7 +1591,13 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
1591 int i; 1591 int i;
1592 int size; 1592 int size;
1593 int size0 = 0; 1593 int size0 = 0;
1594 u32 f0 = 0; 1594 /*
1595 * f0 is only used if nreq != 0, and f0 will be initialized
1596 * the first time through the main loop, since size0 == 0 the
1597 * first time through. So nreq cannot become non-zero without
1598 * initializing f0, and f0 is in fact never used uninitialized.
1599 */
1600 u32 uninitialized_var(f0);
1595 int ind; 1601 int ind;
1596 u8 op0 = 0; 1602 u8 op0 = 0;
1597 1603
@@ -1946,7 +1952,13 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
1946 int i; 1952 int i;
1947 int size; 1953 int size;
1948 int size0 = 0; 1954 int size0 = 0;
1949 u32 f0 = 0; 1955 /*
1956 * f0 is only used if nreq != 0, and f0 will be initialized
1957 * the first time through the main loop, since size0 == 0 the
1958 * first time through. So nreq cannot become non-zero without
1959 * initializing f0, and f0 is in fact never used uninitialized.
1960 */
1961 u32 uninitialized_var(f0);
1950 int ind; 1962 int ind;
1951 u8 op0 = 0; 1963 u8 op0 = 0;
1952 1964