Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2408450pxb; Tue, 9 Mar 2021 01:34:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZDAsS/IyuZ3EL2vKu+lQFHxx60KX+I3nBmOpxdN2WQ7gI1YPN67ttQC99AH1lAmsGAEFE X-Received: by 2002:a17:906:73c2:: with SMTP id n2mr19502595ejl.224.1615282440935; Tue, 09 Mar 2021 01:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615282440; cv=none; d=google.com; s=arc-20160816; b=rTrxthCpKMy2WbIn3jA8tNe1/MpBoa0Oa/GKomnmatNBD1n9yaculeuAWO2AMgkjSZ S7oJCmUr0sicWEA8SdcdWR+kibk/PhpNJf0htBwWoS6A4gzKLB/Blw8S1UjRNc1Fg+Wl L/I1+5j87WqG6/8Fyn4UFHnx72psCJWN6VsIIjZmFc8P/i8DmiMllq9rJLfdX4bQm0JY w6BLwEKMzrLTvUeEPI/Nl/Fo1awZ62PT21zZxnNfW0N9jw3ZUafamhBhzSTRbKbwZICg rlkGg347FRKp3t8RzHp6cTPP8zBp6sDvMJrLDpShjrn5RIEomYrk6jluPRe4xuxtvJ3Y 4R0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=DSYmFIX0ZwSaq3tqjjtu3zJFOydz+HjCrhVeWt+DepE=; b=AH66L+OzhPJJ2+Pblc1JkFQ86P+aVORQgFBuH7qo9Yv6TNfDXpPOljZb6wBX/Wf/y/ D5RTjWebFsoqfxvk9kxGbsaa9Zs/AhmSAe01GNlepqlO4u9mXJwsYPnyPqHTXKQD4Dx9 SW8gWFN3RhpA2/6glHg3FA65J7dd+OUGzBh7x2cMTr4/TVS9jMGUgGivSBiQws0XXKlm +knYpw/21cx/Z3D/Qjkk+30iKbCUO1GyktH/Nc4MXAQvW3506J4WyBc457W9KjwOny3E bhnyrr8pxZkr9A9YkuwVnamgWxCJB6sryNeKh7Dg+o79HpPAQi0ZsrcMVpn590gt5c/c MGCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si8487068ejv.110.2021.03.09.01.33.38; Tue, 09 Mar 2021 01:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbhCIJcc (ORCPT + 99 others); Tue, 9 Mar 2021 04:32:32 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:39145 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhCIJcE (ORCPT ); Tue, 9 Mar 2021 04:32:04 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R321e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UR4aFol_1615282321; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UR4aFol_1615282321) by smtp.aliyun-inc.com(127.0.0.1); Tue, 09 Mar 2021 17:32:02 +0800 From: Yang Li To: agk@redhat.com Cc: snitzer@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] dm: remove unneeded variable 'sz' Date: Tue, 9 Mar 2021 17:32:00 +0800 Message-Id: <1615282320-28246-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/md/dm-ps-service-time.c:85:10-12: Unneeded variable: "sz". Return "0" on line 105 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/md/dm-ps-service-time.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/dm-ps-service-time.c b/drivers/md/dm-ps-service-time.c index 9cfda66..12dd5ce 100644 --- a/drivers/md/dm-ps-service-time.c +++ b/drivers/md/dm-ps-service-time.c @@ -82,7 +82,6 @@ static void st_destroy(struct path_selector *ps) static int st_status(struct path_selector *ps, struct dm_path *path, status_type_t type, char *result, unsigned maxlen) { - unsigned sz = 0; struct path_info *pi; if (!path) @@ -102,7 +101,7 @@ static int st_status(struct path_selector *ps, struct dm_path *path, } } - return sz; + return 0; } static int st_add_path(struct path_selector *ps, struct dm_path *path, -- 1.8.3.1