Skip to content

Commit

Permalink
btrfs: tests: fix formatting in btrfs-tests
Browse files Browse the repository at this point in the history
checkpatch.pl had a couple of formatting suggestions:
- torvalds#38: Don't use multiple blank lines
- torvalds#42: Missing a blank line after declarations
- torvalds#282: Alignment should match open parenthesis

Fixed these format suggestions, checkpatch.pl is a little cleaner now.

Signed-off-by: Phillip Duncan <turtlekernelsanders@gmail.com>
  • Loading branch information
Phillip Duncan authored and intel-lab-lkp committed May 30, 2023
1 parent bebbb1f commit 9782b33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/btrfs/tests/btrfs-tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9782b33

Please sign in to comment.