mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 19:27:13 +00:00
usb: gadget: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST(). No functional changes. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
ea78201e2e
commit
a346941152
@ -557,7 +557,7 @@ static struct config_group *function_make(
|
||||
|
||||
fi = usb_get_function_instance(func_name);
|
||||
if (IS_ERR(fi))
|
||||
return ERR_PTR(PTR_ERR(fi));
|
||||
return ERR_CAST(fi);
|
||||
|
||||
ret = config_item_set_name(&fi->group.cg_item, name);
|
||||
if (ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user