]> err.no Git - linux-2.6/blobdiff - kernel/workqueue.c
[PATCH] jffs/jffs2: remove wrong function prototypes
[linux-2.6] / kernel / workqueue.c
index 259cf55da3c9002cf390099fafa5f2de885ecc89..a3de837a8dddf7fc0f10daf53b5d1d5fe90928e8 100644 (file)
@@ -308,8 +308,6 @@ struct workqueue_struct *__create_workqueue(const char *name,
        struct workqueue_struct *wq;
        struct task_struct *p;
 
-       BUG_ON(strlen(name) > 10);
-
        wq = kmalloc(sizeof(*wq), GFP_KERNEL);
        if (!wq)
                return NULL;
@@ -501,7 +499,7 @@ static int __devinit workqueue_cpu_callback(struct notifier_block *nfb,
        case CPU_UP_PREPARE:
                /* Create a new workqueue thread for it. */
                list_for_each_entry(wq, &workqueues, list) {
-                       if (create_workqueue_thread(wq, hotcpu) < 0) {
+                       if (!create_workqueue_thread(wq, hotcpu)) {
                                printk("workqueue for %i failed\n", hotcpu);
                                return NOTIFY_BAD;
                        }