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@xxxxxxxxxx>
---
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,
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel