dde_linux/usb: Don't treat trimming SKB to current len as error

The rndis_host driver calls skb_trim with the current SKB length which
results in many "errors" logged. We shouldn't treat this condition
as an error.
This commit is contained in:
Alexander Senier 2017-10-26 11:46:35 +02:00 committed by Christian Helmuth
parent f15e8fec8f
commit 77010d6434
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ unsigned char *skb_pull(struct sk_buff *skb, unsigned int len)
*/
void skb_trim(struct sk_buff *skb, unsigned int len)
{
if (skb->len <= len) {
if (skb->len < len) {
Genode::error("Error trimming to ", len, " bytes skb: ", skb, " data: ",
skb->data, " start: ", skb->start, " len ", skb->len);
return;