USB: gadget: rndis: fix compilation warning

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
Huang, Tao
2015-05-05 17:36:46 +08:00
parent 1aab3d20ef
commit 433b7b6a39

View File

@@ -1050,7 +1050,7 @@ int rndis_rm_hdr(struct gether *port,
}
if (skb->len < sizeof *hdr) {
pr_err("invalid rndis pkt: skblen:%u hdr_len:%u",
pr_err("invalid rndis pkt: skblen:%u hdr_len:%zu",
skb->len, sizeof *hdr);
dev_kfree_skb_any(skb);
return -EINVAL;