lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 27 Aug 2022 12:38:48 -0400 From: Shaomin Deng <dengshaomin@...rlc.com> To: agk@...hat.com, snitzer@...nel.org, dm-devel@...hat.com, linux-kernel@...r.kernel.org Cc: Shaomin Deng <dengshaomin@...rlc.com> Subject: [PATCH] dm: Remove the unneeeded variable The variable "sz" is unneeded, return 0 will be okay. Signed-off-by: Shaomin Deng <dengshaomin@...rlc.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
Powered by blists - more mailing lists