lkml.org 
[lkml]   [2019]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2] vfs: Adjust indentation in remap_verify_area
Date
Clang's -Wmisleading-indentation caught an instance in remap_verify_area
where there was a trailing space after a tab. Remove it to get rid of
the warning.

Fixes: 04b38d601239 ("vfs: pull btrfs clone API to vfs layer")
Link: https://github.com/ClangBuiltLinux/linux/issues/828
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
---

v1 -> v2:

* Trim warning and simplify patch explanation.

fs/read_write.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/read_write.c b/fs/read_write.c
index 5bbf587f5bc1..c71e863163bd 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -1757,7 +1757,7 @@ static int remap_verify_area(struct file *file, loff_t pos, loff_t len,
if (unlikely(pos < 0 || len < 0))
return -EINVAL;

- if (unlikely((loff_t) (pos + len) < 0))
+ if (unlikely((loff_t) (pos + len) < 0))
return -EINVAL;

if (unlikely(inode->i_flctx && mandatory_lock(inode))) {
--
2.24.1
\
 
 \ /
  Last update: 2019-12-18 06:17    [W:0.040 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site