mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
[qib7322] Fix compiler warning on gcc 4.7
Originally-fixed-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user