Skip to content

Commit

Permalink
usb: gadget: f_subset: switch over to PTR_RET
Browse files Browse the repository at this point in the history
this patch fixes the following Coccinelle warning:

drivers/usb/gadget/f_subset.c:279:8-14: WARNING: \
	PTR_RET can be used

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Mar 17, 2014
1 parent ade79d1 commit f3c7364
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 IS_ERR(net) ? PTR_ERR(net) : 0;
return PTR_RET(net);
}

static void geth_disable(struct usb_function *f)
Expand Down

0 comments on commit f3c7364

Please sign in to comment.