Skip to content

Commit c666282

Browse files
committed
net/pkt: Fix a few left over cases of net_pkt_read_new
In the conversion of net_pkt_read_new to net_pkt_read, we missed changing the function in the eth_smsc911x and eswifi_offload. Signed-off-by: Kumar Gala <[email protected]>
1 parent 3f34fea commit c666282

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/ethernet/eth_smsc911x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static int eth_tx(struct device *dev, struct net_pkt *pkt)
484484
SMSC9220->TX_DATA_PORT = txcmd_a;
485485
SMSC9220->TX_DATA_PORT = txcmd_b;
486486

487-
if (net_pkt_read_new(pkt, tx_buf, total_len)) {
487+
if (net_pkt_read(pkt, tx_buf, total_len)) {
488488
goto error;
489489
}
490490

drivers/wifi/eswifi/eswifi_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static int __eswifi_off_send_pkt(struct eswifi_dev *eswifi,
329329
offset = strlen(eswifi->buf);
330330

331331
/* copy payload */
332-
if (net_pkt_read_new(pkt, &eswifi->buf[offset], bytes)) {
332+
if (net_pkt_read(pkt, &eswifi->buf[offset], bytes)) {
333333
return -ENOBUFS;
334334
}
335335

0 commit comments

Comments
 (0)