The callers are ensuring that another interface doesn't exist with the
same interface id and so there is no need to check that from
gb_interface_create() anymore.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
struct gb_interface *intf;
int retval;
- intf = gb_interface_find(hd, interface_id);
- if (intf) {
- dev_err(hd->parent, "Duplicate interface with interface-id: %d will not be created\n",
- interface_id);
- return NULL;
- }
-
module = gb_module_find(hd, endo_get_module_id(hd->endo, interface_id));
if (!module)
return NULL;