mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
[ethernet] Avoid false positive Coverity warning
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -134,7 +134,7 @@ int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf,
|
|||||||
* frames, without requiring a full LLC protocol layer.
|
* frames, without requiring a full LLC protocol layer.
|
||||||
*/
|
*/
|
||||||
if ( eth_is_llc_packet ( ethhdr ) ) {
|
if ( eth_is_llc_packet ( ethhdr ) ) {
|
||||||
llc_proto = ( ðhdr->h_protocol + 1 );
|
llc_proto = iobuf->data;
|
||||||
*net_proto = *llc_proto;
|
*net_proto = *llc_proto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user