Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp103348ybl; Sat, 30 Nov 2019 21:47:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzTx5rQco8fSK3YuUNj58fKwozzATOiS23DW/kcoS/kZwPHEAj2omIzTNwX9zQphXLwAcNU X-Received: by 2002:a17:906:3602:: with SMTP id q2mr34570767ejb.167.1575179249310; Sat, 30 Nov 2019 21:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575179249; cv=none; d=google.com; s=arc-20160816; b=KOU2r/9Z98xz2vmTzaUydj9oKIotinD/v1UePBAsr8sotQZ9i1wpA+DPo7Ufd4YiEI uo+uoKytEByu9hBOvYa3Zkuponk0g1V9Q7KMMO1ozXXLhvOgy9oy0dAhyO2ZnODFr1vh cwO3SDiHRikeSYNvUirDAojmM1hSa0jIm18usJGAIFK1/BDEUrR4HNfjfqkThT/+4utD F1cK7rXB7BBvC/pwconKUUS6Hd2+2AwRwikiiu3cciORi9klnuFkX2ZLutmoNFqd/3eb Wr/9w4a5wKqLr5UVpj7Vk+2zQQDRgvtR2N5qOeRjX6fMaFR6+QmORYx8b10CdOTRwREP zccw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=X7ley8JXHje4lCwDYJLUwhoPHGOKy00BtUbYE06y2mQ=; b=I/50ZXJK4TLdwYavk/DH3uohwKdolvnTEPFR/3sTFf8Sg2CzMFQnWtYWLISCoHYSNv ja9FqreZLTKye3xC9rije9/PqS7vx9FRrdOSLB2pqL6k3sdeGPzwVBzjYZYgdNH5nlJU UtKM71G6aoQO31sDqED7spxR+WdeKm6KrR34n9HM77nqcrgO8ZgqxGJQebFNgBD4aCqO tPSCKFSpgsDRzYxyQMxnykL0FJlWRMRiZ9JKpmKeQ5cKXmhS10pGUerOI7cwBo0w5gvY +XHugfRxtGgchRGj3g//3zykDqMGypAzgxzGNTn/Eb3O4vJ8ms14HiPFyQG3F87rJBEN PEMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gIMR+UCf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si20238921edn.253.2019.11.30.21.47.04; Sat, 30 Nov 2019 21:47:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gIMR+UCf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbfLAFno (ORCPT + 99 others); Sun, 1 Dec 2019 00:43:44 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:36183 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfLAFnn (ORCPT ); Sun, 1 Dec 2019 00:43:43 -0500 Received: by mail-pj1-f68.google.com with SMTP id n96so4182839pjc.3; Sat, 30 Nov 2019 21:43:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=X7ley8JXHje4lCwDYJLUwhoPHGOKy00BtUbYE06y2mQ=; b=gIMR+UCf26AXrDilZVj8Sd791uneddCgmgS/oZ0WtLeRuEwZEGSUOehtQbae8D1b2n 7QetijqvdqwjLS9FIaQM7O+1cQXy1EI2nrHIGHSC2lPPjc+DabrLPk+2rvT/Hx5VcoDy 5+oR/6AsQ4kFZAWSfb8XxaDyLSCcMWXUsxQk720GpeQ71lLUt6MmhZrKnfVZAw6Zas55 bNh0Hito61dAZb0maszQSyyqCZ2KjFwt+jYiPPzf9vdJbp1zS0HfMX/vw/lXvDwO83ok LFyy7IIBHf58jg0ENXolHosZHhNJYMbFN+028GVI0HsJ0P7HyHLb45I/Fh7kZkxU1A9W 0gPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=X7ley8JXHje4lCwDYJLUwhoPHGOKy00BtUbYE06y2mQ=; b=KvQBoenrTBLOljgdGGvBmNZTBp+1yfcpvMGvluOA1ay+fYCOrgbZ61SZ7mk4vI3iR2 2QreIphRztSxsqhfe+3RsnSQICcpNfWiL6jIEc40REUHrH7+vrqlabWxQEkmHEdCKGRW KNoj+qe0mq00ICHv0D3X2MxNN+cpfNOkS9s5rR/rlPzjsrB9aTwzWoYLstTS8Rh3SHc0 dap67BTVu/8+dAvGhDnbeXztsuz5zHIV9Sw9PGHEGB3kChrkU649F8MBuxopFbF5xpUU JOF89oSinU8vZYiKlJqahDl+4ybnFz0Kzb37fg7s1wXfrZ8RxoDkjAiE6HmOtCDVLu6I Xqjg== X-Gm-Message-State: APjAAAWZ2uN+rnXBrU6QBLBDijpwbDqlEpb4U1zz4dHjOTP8jTRXq+Hk MHhd5tYQKsOkWXJBDdhs51g= X-Received: by 2002:a17:90a:353:: with SMTP id 19mr29595680pjf.128.1575179023309; Sat, 30 Nov 2019 21:43:43 -0800 (PST) Received: from localhost.localdomain ([124.80.131.109]) by smtp.googlemail.com with ESMTPSA id m71sm11730331pje.0.2019.11.30.21.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 21:43:42 -0800 (PST) From: Jieun Kim X-Google-Original-From: Jieun Kim To: Mike Snitzer Cc: Alasdair Kergon , dm-devel@redhat.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Jieun Kim Subject: [PATCH 2/2] drivers: md: dm-log.c: Remove unused variable 'sz' Date: Sun, 1 Dec 2019 14:42:57 +0900 Message-Id: <20191201054257.13199-1-Jieun.Kim4758@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused variable 'sz' in disk_status function detected by coccinelle scripts(returnvar.cocci) Signed-off-by: Jieun Kim --- 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 8800ec1847b5..67e74362c6ac 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c @@ -800,7 +800,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) { @@ -818,7 +817,7 @@ static int disk_status(struct dm_dirty_log *log, status_type_t status, DMEMIT_SYNC; } - return sz; + return 0; } static struct dm_dirty_log_type _core_type = { -- 2.17.1