usb: gadget: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Thu, 26 Sep 2013 07:55:25 +0000 (15:55 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:46:17 +0000 (09:46 -0500)
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>
drivers/usb/gadget/configfs.c

index 8f0d6141e5e6c2b2c1acfb53b769438f32d7907a..1bfacbfca1d82970b562f4155f1eaa0f912d9d55 100644 (file)
@@ -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) {