OSDN Git Service

samples: configfs: consolidate local variables of the same type
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 24 Sep 2020 12:45:24 +0000 (14:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 13:46:21 +0000 (15:46 +0200)
Move local variables of the same type into a single line for better
readability.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
samples/configfs/configfs_sample.c

index 66bb9bc..2e56d69 100644 (file)
@@ -331,9 +331,8 @@ static struct configfs_subsystem *example_subsys[] = {
 
 static int __init configfs_example_init(void)
 {
-       int ret;
-       int i;
        struct configfs_subsystem *subsys;
+       int ret, i;
 
        for (i = 0; example_subsys[i]; i++) {
                subsys = example_subsys[i];