Skip to content

Commit

Permalink
usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Duan Jiong authored and Felipe Balbi committed Apr 21, 2014
1 parent aea8928 commit 9f58fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_subset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f58fa4

Please sign in to comment.