All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] [PATCH] dm: Remove the unneeeded variable
@ 2022-08-27 16:38 ` Shaomin Deng
  0 siblings, 0 replies; 6+ messages in thread
From: Shaomin Deng @ 2022-08-27 16:38 UTC (permalink / raw)
  To: agk, snitzer, dm-devel, linux-kernel; +Cc: Shaomin Deng

The variable "sz" is unneeded, return 0 will be okay.

Signed-off-by: Shaomin Deng <dengshaomin@cdjrlc.com>
---
 drivers/md/dm-log.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c
index 0c6620e7b7bf..a4955eb96d6f 100644
--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -805,7 +805,6 @@ static int core_status(struct dm_dirty_log *log, status_type_t status,
 static int disk_status(struct dm_dirty_log *log, status_type_t status,
 		       char *result, unsigned int maxlen)
 {
-	int sz = 0;
 	struct log_c *lc = log->context;
 
 	switch(status) {
@@ -828,7 +827,7 @@ static int disk_status(struct dm_dirty_log *log, status_type_t status,
 		break;
 	}
 
-	return sz;
+	return 0;
 }
 
 static struct dm_dirty_log_type _core_type = {
-- 
2.35.1

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-29  5:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-27 16:38 [dm-devel] [PATCH] dm: Remove the unneeeded variable Shaomin Deng
2022-08-27 16:38 ` Shaomin Deng
2022-08-27 18:35 ` [dm-devel] " kernel test robot
2022-08-27 18:35   ` kernel test robot
2022-08-27 19:46 ` [dm-devel] " kernel test robot
2022-08-27 19:46   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.