提交 e62416e8 编写于 作者: B Bjørn Mork 提交者: David S. Miller

net: cdc_mbim: fixup error return value

Reported-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NBjørn Mork <bjorn@mork.no>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c37ac9b2
无相关合并请求
......@@ -369,15 +369,13 @@ static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in)
static int cdc_mbim_suspend(struct usb_interface *intf, pm_message_t message)
{
int ret = 0;
int ret = -ENODEV;
struct usbnet *dev = usb_get_intfdata(intf);
struct cdc_mbim_state *info = (void *)&dev->data;
struct cdc_ncm_ctx *ctx = info->ctx;
if (ctx == NULL) {
ret = -1;
if (!ctx)
goto error;
}
/*
* Both usbnet_suspend() and subdriver->suspend() MUST return 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部