mirror of https://github.com/ipxe/ipxe.git
[qib7322] Fix compiler warning on gcc 4.7
Originally-fixed-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/598/head
parent
a87c0c4f0f
commit
1ac62b914e
|
@ -2062,6 +2062,9 @@ static int qib7322_ahb_read ( struct qib7322 *qib7322, unsigned int location,
|
||||||
struct QIB_7322_ahb_transaction_reg xact;
|
struct QIB_7322_ahb_transaction_reg xact;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
/* Avoid returning uninitialised data on error */
|
||||||
|
*data = 0;
|
||||||
|
|
||||||
/* Initiate transaction */
|
/* Initiate transaction */
|
||||||
memset ( &xact, 0, sizeof ( xact ) );
|
memset ( &xact, 0, sizeof ( xact ) );
|
||||||
BIT_FILL_2 ( &xact,
|
BIT_FILL_2 ( &xact,
|
||||||
|
|
Loading…
Reference in New Issue