]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-zpool-prevent-zbud-zsmalloc-from-unloading-when-used-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 26 Jun 2014 00:42:46 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:46 +0000 (10:42 +1000)
WARNING: Missing a blank line after declarations
#76: FILE: mm/zpool.c:79:
+ bool got = try_module_get(driver->owner);
+ spin_unlock(&drivers_lock);

total: 0 errors, 1 warnings, 94 lines checked

./patches/mm-zpool-prevent-zbud-zsmalloc-from-unloading-when-used.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zpool.c

index 119f340b09a519508218a43f25a2bcb06bb5ea28..f503474d2923beddbaa074a2263e180d470581e9 100644 (file)
@@ -76,6 +76,7 @@ static struct zpool_driver *zpool_get_driver(char *type)
        list_for_each_entry(driver, &drivers_head, list) {
                if (!strcmp(driver->type, type)) {
                        bool got = try_module_get(driver->owner);
+
                        spin_unlock(&drivers_lock);
                        return got ? driver : NULL;
                }