From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 231AFEB64DB for ; Wed, 14 Jun 2023 07:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686726425; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rbKriimm4mtC6KXCQl5m9xlQyBHHTtr239NxNcJPXqk=; b=O/efZUpTDj2rbN47aQSc7bFFUSF2tu45j5zP3RC6gSPcPxT5z4n6fF942Qcxj2s+v0emWj dleFz69ZGPILyPj176sUYxYJfMbcTZik7A8SaavGS8G4l05q5LyN6zjrcTLvN2x8FPCvqp 0g6TIoKS9ScIQweD+ujt9lfWANvBpJY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-91-tYYif-BoOO2PSVkZ08rjDw-1; Wed, 14 Jun 2023 03:07:00 -0400 X-MC-Unique: tYYif-BoOO2PSVkZ08rjDw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66661858282; Wed, 14 Jun 2023 07:06:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 123D72166B26; Wed, 14 Jun 2023 07:06:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 99FC419452C2; Wed, 14 Jun 2023 07:06:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 18086194658C for ; Wed, 14 Jun 2023 02:19:03 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EB5E8141510A; Wed, 14 Jun 2023 02:19:02 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3BE01415102 for ; Wed, 14 Jun 2023 02:19:02 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 88BEF1C05AB7 for ; Wed, 14 Jun 2023 02:19:02 +0000 (UTC) Received: from mail.208.org (183.242.55.162 [183.242.55.162]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-303-HdpT3P2uM8-I57rRcq_YNQ-1; Tue, 13 Jun 2023 22:17:43 -0400 X-MC-Unique: HdpT3P2uM8-I57rRcq_YNQ-1 Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgpmT6RpfzBJL9v for ; Wed, 14 Jun 2023 10:10:33 +0800 (CST) X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PN0ESNAmdWUL for ; Wed, 14 Jun 2023 10:10:33 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgpmT3xcVzBJL9m; Wed, 14 Jun 2023 10:10:33 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 10:10:33 +0800 From: baomingtong001@208suo.com To: agk , snitzer , dm-devel User-Agent: Roundcube Webmail Message-ID: <202306141008237478337@208suo.com> X-Sender: baomingtong001@208suo.com X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mailman-Approved-At: Wed, 14 Jun 2023 07:06:43 +0000 Subject: [dm-devel] [PATCH] dm: remove unneeded variable X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: 208suo.com Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Zml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKCgrCoAoKCgpkcml2ZXJzL21k L2RtLXNuYXAtcGVyc2lzdGVudC5jOjkwOToxNC0xNjogVW5uZWVkZWQgdmFyaWFibGU6ICJzeiIu CgoKCsKgCgoKClNpZ25lZC1vZmYtYnk6IE1pbmd0b25nIEJhbyA8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SA9IHsKCgoKLS0KCgoKMi40MC4xCgoKCsKgCgoK LS0KZG0tZGV2ZWwgbWFpbGluZyBsaXN0CmRtLWRldmVsQHJlZGhhdC5jb20KaHR0cHM6Ly9saXN0 bWFuLnJlZGhhdC5jb20vbWFpbG1hbi9saXN0aW5mby9kbS1kZXZlbAo= From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C27FEB64D7 for ; Wed, 14 Jun 2023 02:22:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234588AbjFNCWq (ORCPT ); Tue, 13 Jun 2023 22:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231937AbjFNCWo (ORCPT ); Tue, 13 Jun 2023 22:22:44 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C641A7 for ; Tue, 13 Jun 2023 19:22:42 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgpmT6PCmzBJL9t for ; Wed, 14 Jun 2023 10:10:33 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :subject:to:from:date:mime-version; s=dkim; t=1686708633; x= 1689300634; bh=Coxosl6j2ywY7ogLos2ae154xpI/eGkqov+EDC/rjTM=; b=A YnP+ppZAg8B0DKr4ragszC6sx7+FQHxhee6NWZvIq1+7AZja/9f2xBTaBRmkKO2f XGHgzSGk6ykQ5ouQF9zVcBibP/HZS0MA2zwCFjOpE8Gea2oTV8VxFmeiozHvZhXP 4wlamhXtPhzJLvy9XZYyQAgzGfRyAGG5FO+druc/9v7FhkwU1x1LgtSMVHgLPpux uDB5rm0KdXteg9udptOHdLBs66Qpp8eh7Iu/7K5ZWUUVFBXORTX8tang4Ic7GDxj DfCv3RnhwzKpXt/lkBsQysflnMayyKgV7FHRINfx52AfLClf9LCt5Oi07Qo8o/Oi +lEjQTpZA++3YAz91WJEQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n330S14c3w6Q for ; Wed, 14 Jun 2023 10:10:33 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgpmT3xcVzBJL9m; Wed, 14 Jun 2023 10:10:33 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 10:10:33 +0800 From: baomingtong001@208suo.com To: agk , snitzer , dm-devel Cc: linux-kernel Subject: [PATCH] dm: remove unneeded variable User-Agent: Roundcube Webmail Message-ID: <202306141008237478337@208suo.com> X-Sender: baomingtong001@208suo.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix the following coccicheck warning: =C2=A0 drivers/md/dm-snap-persistent.c:909:14-16: Unneeded variable: "sz". =C2=A0 Signed-off-by: Mingtong Bao --- drivers/md/dm-snap-persistent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) =C2=A0 diff --git a/drivers/md/dm-snap-persistent.c=20 b/drivers/md/dm-snap-persistent.c index 15649921f2a9..7ea01bceba59 100644 --- a/drivers/md/dm-snap-persistent.c +++ b/drivers/md/dm-snap-persistent.c @@ -906,7 +906,6 @@ static unsigned int persistent_status(struct=20 dm_exception_store *store, =C2=A0 status_type_t status, char *result, =C2=A0 unsigned int maxlen) { - unsigned int sz =3D 0; switch (status) { case STATUSTYPE_INFO: @@ -920,7 +919,7 @@ static unsigned int persistent_status(struct=20 dm_exception_store *store, break; } - return sz; + return 0; } static struct dm_exception_store_type _persistent_type =3D { -- 2.40.1 =C2=A0