btrfs: tests: fix formatting in btrfs-tests
PATCH 1/1 btrfs: tests: fix formatting in btrfs-tests
checkpatch.pl had a couple of formatting suggestions:
- #38: Don't use multiple blank lines
- #42: Missing a blank line after declarations
- #282: Alignment should match open parenthesis
Fixed these format suggestions, checkpatch.pl is a little cleaner now.
--- fs/btrfs/tests/btrfs-tests.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/btrfs/tests/btrfs-tests.c +2 -3
@@ -35,10 +35,10 @@ static const struct super_operations btrfs_test_super_ops = { .destroy_inode = btrfs_test_destroy_inode, }; -static int btrfs_test_init_fs_context (struct fs_context *fc) {struct pseudo_fs_context *ctx =init_pseudo (fc,BTRFS_TEST_MAGIC ); +if (!ctx)return -ENOMEM ; ctx->ops = &btrfs_test_super_ops;
@@ -278,8 +278,7 @@ int btrfs_run_sanity_tests(void) ret =btrfs_test_free_space_cache (sectorsize, nodesize);if (ret) goto out; - ret =btrfs_test_extent_buffer_operations (sectorsize, - nodesize); + ret =btrfs_test_extent_buffer_operations (sectorsize, nodesize);if (ret) goto out; ret =btrfs_test_extent_io (sectorsize, nodesize);
Signature · 1 line
2.34.1
Quoted 6 lines · Phillip Duncan
checkpatch.pl had a couple of formatting suggestions:
- #38: Don't use multiple blank lines
- #42: Missing a blank line after declarations
- #282: Alignment should match open parenthesisFixed these format suggestions, checkpatch.pl is a little cleaner now.
Please don't send such patches, or at least not to btrfs. A more elaborate answer:
https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start
Quoted 6 lines · David Sterba
Quoted 5 lines · Phillip Duncan
checkpatch.pl had a couple of formatting suggestions:
- #38: Don't use multiple blank lines
- #42: Missing a blank line after declarations
- #282: Alignment should match open parenthesis
Quoted 6 lines
Quoted 1 line
Fixed these format suggestions, checkpatch.pl is a little cleaner now.
Please don't send such patches, or at least not to btrfs. A more elaborate answer:
https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start
Thank you for taking the time to respond, I appreciate the direction for where to start.