[ethernet] Avoid false positive Coverity warning

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/94/head
Michael Brown 2019-08-17 17:30:09 +01:00
parent a5c41483d2
commit f1e6efa40b
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf,
* frames, without requiring a full LLC protocol layer.
*/
if ( eth_is_llc_packet ( ethhdr ) ) {
llc_proto = ( &ethhdr->h_protocol + 1 );
llc_proto = iobuf->data;
*net_proto = *llc_proto;
}