summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband
diff options
context:
space:
mode:
authorMichael Brown2012-07-20 20:18:50 +0200
committerMichael Brown2012-07-20 20:18:50 +0200
commit1ac62b914ec9f478cc0ed63a45a87196a583b073 (patch)
treef94a9bc4eeac5a7bef8e491b5b6ba30f95a2682a /src/drivers/infiniband
parent[isa] Avoid spurious compiler warning on gcc 4.7 (diff)
downloadipxe-1ac62b914ec9f478cc0ed63a45a87196a583b073.tar.gz
ipxe-1ac62b914ec9f478cc0ed63a45a87196a583b073.tar.xz
ipxe-1ac62b914ec9f478cc0ed63a45a87196a583b073.zip
[qib7322] Fix compiler warning on gcc 4.7
Originally-fixed-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rw-r--r--src/drivers/infiniband/qib7322.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/infiniband/qib7322.c b/src/drivers/infiniband/qib7322.c
index b66f8eff..8b61b8dc 100644
--- a/src/drivers/infiniband/qib7322.c
+++ b/src/drivers/infiniband/qib7322.c
@@ -2062,6 +2062,9 @@ static int qib7322_ahb_read ( struct qib7322 *qib7322, unsigned int location,
struct QIB_7322_ahb_transaction_reg xact;
int rc;
+ /* Avoid returning uninitialised data on error */
+ *data = 0;
+
/* Initiate transaction */
memset ( &xact, 0, sizeof ( xact ) );
BIT_FILL_2 ( &xact,