mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue