Commit fa15d6d3 authored by Tim Sell's avatar Tim Sell Committed by Greg Kroah-Hartman

staging: unisys: visornic: correct obvious double-allocation of workqueues

Looks like an errant patch fitting caused us to redundantly allocate the
workqueues at both the beginning and end of visornic_init().  This was
corrected by removing the allocations at the beginning.
Signed-off-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Fixes: 68905a14 ('staging: unisys: Add s-Par visornic ethernet driver')
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 00748b0c
...@@ -2127,18 +2127,6 @@ static int visornic_init(void) ...@@ -2127,18 +2127,6 @@ static int visornic_init(void)
struct dentry *ret; struct dentry *ret;
int err = -ENOMEM; int err = -ENOMEM;
/* create workqueue for serverdown completion */
visornic_serverdown_workqueue =
create_singlethread_workqueue("visornic_serverdown");
if (!visornic_serverdown_workqueue)
return -ENOMEM;
/* create workqueue for tx timeout reset */
visornic_timeout_reset_workqueue =
create_singlethread_workqueue("visornic_timeout_reset");
if (!visornic_timeout_reset_workqueue)
return -ENOMEM;
visornic_debugfs_dir = debugfs_create_dir("visornic", NULL); visornic_debugfs_dir = debugfs_create_dir("visornic", NULL);
if (!visornic_debugfs_dir) if (!visornic_debugfs_dir)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment