From: Eli Billauer Date: Thu, 4 Sep 2014 14:47:43 +0000 (+0300) Subject: staging: xillybus: Removed unnecessary warning message X-Git-Tag: v3.18-rc1~130^2~647 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2531f6ccd01c584cc0b06baf854982d89c4f760f;p=karo-tx-linux.git staging: xillybus: Removed unnecessary warning message Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 3e14198c087f..305081535c02 100644 --- a/drivers/staging/xillybus/xillybus_core.c +++ b/drivers/staging/xillybus/xillybus_core.c @@ -2115,17 +2115,11 @@ EXPORT_SYMBOL(xillybus_endpoint_remove); static int __init xillybus_init(void) { - int rc = 0; - mutex_init(&ep_list_lock); xillybus_class = class_create(THIS_MODULE, xillyname); - if (IS_ERR(xillybus_class)) { - rc = PTR_ERR(xillybus_class); - pr_warn("Failed to register class xillybus\n"); - - return rc; - } + if (IS_ERR(xillybus_class)) + return PTR_ERR(xillybus_class); xillybus_wq = alloc_workqueue(xillyname, 0, 0); if (!xillybus_wq) {