Commit 9f58fa4c authored by Duan Jiong's avatar Duan Jiong Committed by Felipe Balbi

usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO

PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.
Signed-off-by: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent aea8928a
......@@ -276,7 +276,7 @@ static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
}
net = gether_connect(&geth->port);
return PTR_RET(net);
return PTR_ERR_OR_ZERO(net);
}
static void geth_disable(struct usb_function *f)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment