diff for duplicates of <1202338431.6162.15.camel@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 11e1a5f..96e711f 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -195,14 +195,14 @@ index 3f341dc..60eeb92 100644 + mdev->product_licence[60] = '\0'; + + for (p = mdev->product_name + 29; mdev->product_name <= p; p--) - if (*p = ' ') + if (*p == ' ') *p = '\0'; else break; - - for (p = dev->product_licence + 59; dev->product_licence <= p; p--) + for (p = mdev->product_licence + 59; mdev->product_licence <= p; p--) - if (*p = ' ') + if (*p == ' ') *p = '\0'; else break; @@ -232,11 +232,12 @@ index 3f341dc..60eeb92 100644 + "Maple bus at (%d, %d): Function 0x%lX\n", + mdev->port, mdev->unit, function); - matched - bus_for_each_drv(&maple_bus_type, NULL, dev, + matched = +- bus_for_each_drv(&maple_bus_type, NULL, dev, + bus_for_each_drv(&maple_bus_type, NULL, mdev, attach_matching_maple_driver); - if (matched = 0) { + if (matched == 0) { /* Driver does not exist yet */ - printk(KERN_INFO - "No maple driver found for this device\n"); @@ -264,7 +265,7 @@ index 3f341dc..60eeb92 100644 - maple_free_dev(dev); + mdev->function = function; + mdev->dev.release = &maple_release_device; -+ if (mdev->registered = 0) { ++ if (mdev->registered == 0) { + retval = device_register(&mdev->dev); + if (retval) { + printk(KERN_INFO @@ -341,7 +342,8 @@ index 3f341dc..60eeb92 100644 static struct device maple_bus = { @@ -677,7 +691,7 @@ static int __init maple_bus_init(void) - maple_queue_cache kmem_cache_create("maple_queue_cache", 0x400, 0, + maple_queue_cache = + kmem_cache_create("maple_queue_cache", 0x400, 0, - SLAB_HWCACHE_ALIGN, NULL); + SLAB_POISON|SLAB_HWCACHE_ALIGN, NULL); diff --git a/a/content_digest b/N1/content_digest index 24e206b..20e2122 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -205,14 +205,14 @@ "+\tmdev->product_licence[60] = '\\0';\n" "+\n" "+\tfor (p = mdev->product_name + 29; mdev->product_name <= p; p--)\n" - " \t\tif (*p = ' ')\n" + " \t\tif (*p == ' ')\n" " \t\t\t*p = '\\0';\n" " \t\telse\n" " \t\t\tbreak;\n" "-\n" "-\tfor (p = dev->product_licence + 59; dev->product_licence <= p; p--)\n" "+\tfor (p = mdev->product_licence + 59; mdev->product_licence <= p; p--)\n" - " \t\tif (*p = ' ')\n" + " \t\tif (*p == ' ')\n" " \t\t\t*p = '\\0';\n" " \t\telse\n" " \t\t\tbreak;\n" @@ -242,11 +242,12 @@ "+\t\t\t\t\"Maple bus at (%d, %d): Function 0x%lX\\n\",\n" "+\t\t\t\tmdev->port, mdev->unit, function);\n" " \n" - " \t\tmatched -\t\t bus_for_each_drv(&maple_bus_type, NULL, dev,\n" + " \t\tmatched =\n" + "-\t\t bus_for_each_drv(&maple_bus_type, NULL, dev,\n" "+\t\t bus_for_each_drv(&maple_bus_type, NULL, mdev,\n" " \t\t\t\t attach_matching_maple_driver);\n" " \n" - " \t\tif (matched = 0) {\n" + " \t\tif (matched == 0) {\n" " \t\t\t/* Driver does not exist yet */\n" "-\t\t\tprintk(KERN_INFO\n" "-\t\t\t \"No maple driver found for this device\\n\");\n" @@ -274,7 +275,7 @@ "-\t\tmaple_free_dev(dev);\n" "+\tmdev->function = function;\n" "+\tmdev->dev.release = &maple_release_device;\n" - "+\tif (mdev->registered = 0) {\n" + "+\tif (mdev->registered == 0) {\n" "+\t\tretval = device_register(&mdev->dev);\n" "+\t\tif (retval) {\n" "+\t\t\tprintk(KERN_INFO\n" @@ -351,7 +352,8 @@ " static struct device maple_bus = {\n" "@@ -677,7 +691,7 @@ static int __init maple_bus_init(void)\n" " \n" - " \tmaple_queue_cache \t kmem_cache_create(\"maple_queue_cache\", 0x400, 0,\n" + " \tmaple_queue_cache =\n" + " \t kmem_cache_create(\"maple_queue_cache\", 0x400, 0,\n" "-\t\t\t SLAB_HWCACHE_ALIGN, NULL);\n" "+\t\t\t SLAB_POISON|SLAB_HWCACHE_ALIGN, NULL);\n" " \n" @@ -419,4 +421,4 @@ "+/* Push init to later to ensure hardware gets detected */\n" +fs_initcall(maple_bus_init); -0ed85548c67ebbcf1818d43477f60a8e429df7c31b160dc3c647f25ad0f1a668 +ffc45117fcd898999ee92b8fa602e92b072c8ea150df9ea4ccfa3f875deb6504
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.