Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2075091rwd; Tue, 13 Jun 2023 19:48:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5j8ajBlm8UABiCK3Oq+uknNIOsh/VP1mCsNsbDPsj2hK0UE7iH4SyzVnDmoWMbgWhHX2mL X-Received: by 2002:a17:906:58d2:b0:96f:f19b:887a with SMTP id e18-20020a17090658d200b0096ff19b887amr15107476ejs.56.1686710933530; Tue, 13 Jun 2023 19:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686710933; cv=none; d=google.com; s=arc-20160816; b=k3iSqtkcMo367W2BRI8wM8NGN5ud6zLPDNbaAp8muoFsDhKkdqnKrf71BQm3GnClMk NcdmDb1gzpp61C9Hfkmz7lQBFfxYNDP+jsPajgOINehmxPKD038sDSxL5++jLN6gdv0l 9Uh03ki6yvNHT1lqbXyjEb7pIGGUGM1NzCteUeIyfVirG698otKjmt/5LrbtlYZMXl/l /PkLIm+6/u7jLwHoRPBTjoFBhNQL3mnjg5Wed+EL+Ysf7l6zQ+CTPoXgPKmMSRyC3NLy afZDF97f+33mjV/sO9dgCQ3ZZT7nrGG2Xu57bVGbKvRRHzRGXMt5PJw3NAYczyWgAAsW s+Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :subject:cc:to:from:date:mime-version:dkim-signature; bh=Coxosl6j2ywY7ogLos2ae154xpI/eGkqov+EDC/rjTM=; b=CWmSIf5qlXxG9bT/WUrfvMu1uxwd+cG6aA40bGTcIWH0jVmZoMqa9YnimOyoJn/YWw /fD+Xg1+x270AS0M9SkLRAlJnfzZLvqW9r7+3Te7axFWsYlN8qDu0j1/8Q/AtTvaxDwL cq7c7LM8OGf7tW0yNcXBtHAM9EQlkRpWtn/W9pM/WWBpulleIzfFW3F/6jjjCuJPMFZz YNsjq9TELDj1lHx0IKo4F38wDtL3ckxIUqbLVvkUt8qhBaa0DJULPoKrwgXYEzb7SdMf 9JM9TwxgHfAOj1lHmL//s5fAI7+vhKZfmp51uYYwSXwghKXpNQGEJTiYv6ks/tMA86Ue U0Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=AYnP+ppZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id os24-20020a170906af7800b00977cec12ea5si7447306ejb.932.2023.06.13.19.48.28; Tue, 13 Jun 2023 19:48:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=AYnP+ppZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236001AbjFNCWp (ORCPT + 99 others); Tue, 13 Jun 2023 22:22:45 -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 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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