提交 3c425fc0 编写于 作者: H Heinrich Schuchardt 提交者: Marek Vasut

usb: ether: avoid NULL check before free()

free() checks if its argument is NULL. Do not duplicate this check.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 cff0144e
......@@ -2472,8 +2472,7 @@ static int _usb_eth_send(struct ether_priv *priv, void *packet, int length)
}
usb_gadget_handle_interrupts(0);
}
if (rndis_pkt)
free(rndis_pkt);
free(rndis_pkt);
return 0;
drop:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册