diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2013-09-26 15:55:25 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-01 09:46:17 -0500 |
commit | a346941152878d8cab198fb10ba45dd706ed5ea1 (patch) | |
tree | a23adb7fe5dd55a264d98bf6b62ae5a248658a49 /drivers/usb/gadget/configfs.c | |
parent | ea78201e2e08f8a91e30100c4c4a908b5cf295fc (diff) | |
download | op-kernel-dev-a346941152878d8cab198fb10ba45dd706ed5ea1.zip op-kernel-dev-a346941152878d8cab198fb10ba45dd706ed5ea1.tar.gz |
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>
Diffstat (limited to 'drivers/usb/gadget/configfs.c')
-rw-r--r-- | drivers/usb/gadget/configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 8f0d614..1bfacbf 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -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) { |