* [PATCH] dm: remove unneeded variable from ql_status()
[not found] <20230614074927.4072-1-luojianhong@cdjrlc.com>
@ 2023-06-14 7:51 ` baomingtong001
0 siblings, 0 replies; only message in thread
From: baomingtong001 @ 2023-06-14 7:51 UTC (permalink / raw)
To: agk, snitzer, dm-devel; +Cc: linux-kernel
fix the following coccicheck warning:
drivers/md/dm-ps-queue-length.c:90:14-16: Unneeded variable: "sz".
Return "0".
Signed-off-by: Mingtong Bao <baomingtong001@208suo.com>
---
drivers/md/dm-ps-queue-length.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/dm-ps-queue-length.c
b/drivers/md/dm-ps-queue-length.c
index e305f05ad1e5..59411d0a2083 100644
--- a/drivers/md/dm-ps-queue-length.c
+++ b/drivers/md/dm-ps-queue-length.c
@@ -87,7 +87,6 @@ static void ql_destroy(struct path_selector *ps)
static int ql_status(struct path_selector *ps, struct dm_path *path,
status_type_t type, char *result, unsigned int maxlen)
{
- unsigned int sz = 0;
struct path_info *pi;
/* When called with NULL path, return selector status/args. */
@@ -109,7 +108,7 @@ static int ql_status(struct path_selector *ps,
struct dm_path *path,
}
}
- return sz;
+ return 0;
}
static int ql_add_path(struct path_selector *ps, struct dm_path *path,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-14 7:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230614074927.4072-1-luojianhong@cdjrlc.com>
2023-06-14 7:51 ` [PATCH] dm: remove unneeded variable from ql_status() baomingtong001
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®