Skip to contentSkip to conversation

ceph: Clean up errors in locks.c

PATCH New KaiLong Wang 1 participant 1 message Oct 13, 2023 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: Clean up errors in locks.c

Fix the following errors reported by checkpatch:

ERROR: need consistent spacing around '-' (ctx:WxV)

---
 fs/ceph/locks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/locks.c +1 -1
index cb51c7e9c8e2..f956f613dd93 100644
@@ -141,7 +141,7 @@ static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode,
 		length = le64_to_cpu(req->r_reply_info.filelock_reply->start) +
 						 le64_to_cpu(req->r_reply_info.filelock_reply->length);
 		if (length >= 1)
-			fl->fl_end = length -1;
+			fl->fl_end = length - 1;
 		else
 			fl->fl_end = 0;
 
Signature · 1 line
2.17.1