[ena] Fix spurious uninitialised variable warning on older versions of gcc
authorMichael Brown <mcb30@ipxe.org>
Wed, 17 Jan 2018 14:09:56 +0000 (14:09 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 17 Jan 2018 14:09:56 +0000 (14:09 +0000)
commitfbe8c52d0d9cdb3d6f5fe8be8edab54618becc1f
tree2436ea8cc1925755f79b3df7bd26a6da08e10b5c
parent70189a8e4702016f654310e68d9ec4ec425e7344
[ena] Fix spurious uninitialised variable warning on older versions of gcc

Some older versions of gcc (observed with gcc 4.7.2) report a spurious
uninitialised variable warning in ena_get_device_attributes().  Work
around this warning by manually inlining the relevant code (which has
only a single call site).

Reported-by: xbgmsharp <xbgmsharp@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ena.c