Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp101629ybl; Sat, 30 Nov 2019 21:44:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzlBv4DbizNilFUOcw3ioeGJTw0q998QIeKiHcanYMu5pP01UT2Z+SAOseuk0r5cOr+YDD0 X-Received: by 2002:a17:906:19d8:: with SMTP id h24mr1619305ejd.166.1575179066850; Sat, 30 Nov 2019 21:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575179066; cv=none; d=google.com; s=arc-20160816; b=LptO6FBk0x4uK6lJtvu5zfvkMYgzhhk9UzzwfN2VdDJkiz99ufpjA93ae2NswbwHui IxGYTqBjv9ImFkwCkSA/abgd6eS6/i8YRYU/Z7QjFa1bAuNPA7qDS5gwpn4Z1dbOaAHW WGpZ9S+lzgdEREJhsK4nO9MFvwegpbJdEl9vktbdG5Q0siscIic7wD3Pt8uGp08Ow4ie wNsOtT2g5+PAMAM5ILxjPLZxxWCePot5J+VU7FaT3+oGxWNRzAePfhIPjqMdGZfs8r98 jP6bs4sdfCrdDSLZtBrPejn/OZ/zNJMZh9ur8uG4pEeQmH1BCTm/UUkkCX63FvXfiQYV V2hQ== 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=rT96Bmg/Qb2KB7vPy+GvW9l+EOJf0s1IFpO90eKCR1g=; b=qP+zel8H7/CsUCZ5RNZIH6seeuqfcrRNv8nuJhkog7F5W79/e/Ca29tz5SOa2+4qWc bX7KgdzVeW3yLAQDsZGDENMomSSW7KXV0U3v4qNH+5KxJehiLKhQhXgLUrZceDfMB9Je 0d4jHi8xlysexJV71SwL3wz8KO92V0yHOZHlip5qbDu8XTFS0FLiPe4r0G+ZCyjfur8w 7m+T9RJc9HlHhnw4IIismAP5pgTMB0gwVPdpMdG+6tvrA67wVzsf7crAnxQD7Uaiq/07 I0O0IGw9pVgmkEG2yiqRDk3LDTP7zgaDW09kHPU2b2HSYEjWbAZ00b7bHRgNRbdfuU8J FBhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LCwufBGa; 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 w11si3307968edx.286.2019.11.30.21.44.03; Sat, 30 Nov 2019 21:44:26 -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=LCwufBGa; 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 S1726086AbfLAFnF (ORCPT + 99 others); Sun, 1 Dec 2019 00:43:05 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33457 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfLAFnF (ORCPT ); Sun, 1 Dec 2019 00:43:05 -0500 Received: by mail-pl1-f194.google.com with SMTP id ay6so14813007plb.0; Sat, 30 Nov 2019 21:43:03 -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=rT96Bmg/Qb2KB7vPy+GvW9l+EOJf0s1IFpO90eKCR1g=; b=LCwufBGaBuabLAJlscSTT/M2o3Bydo5NgVzrIa/Gr0cQIZbQzd1DBuSFjZ4fsgGO/m pnAAJwfmqnr4y67Zc24zMVsVEbR7C0x/uwOP8HBw4Jlr02njc5VhXg8hEuJqzyWUCN7J mYyXSP6+FFw3bAjtElfPSIxDP1Rh4nXxvbNDsL28pJj2ia/JBu3J/i/eNu1Y8MbIdPi5 Qo/GEHiER1MvOqqos9nxDs5v8EEr1PKSvPClDQ9w9ixQ13zEsnhp8wqYti8V8RNWuCVu Jw3R77RFPdZ3qO+kO6/vnq/2VRgu4HLY5uo/OEXUCbCz7ioqCte4rht/oQjji01Umvsv SFeA== 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=rT96Bmg/Qb2KB7vPy+GvW9l+EOJf0s1IFpO90eKCR1g=; b=Ob5Fpy9cQ7dxHnFM1HDimDpqtMHV/p9GDUVix9hm83Qpe5Xb5hxdyFH0B5/DuHZ8JE dzm0TPF7VPbN6+uYRPyYS1UciYaYauvjcSbxDtx2oW8sXohQgy0DRF22ErvaZXTDZwtF Xnu1gUwtEgaFmn8bfnEH6JiTvyucSTn5KLXWK6bij5/jqLjSfX5DJqkHvhYuYa3+2XxX PYH5qm1AVfd6pIupmQZ97e1cTOQLrf1ffcbevvAzDYt3CUzAKu7jjdQw7SHBZ2mvtusq teoghG617mLWgRSguPfumTpRqtHu2SPKugfGhgkWnpusAAox+mO0TnnunsftkpXo76dI ZWhg== X-Gm-Message-State: APjAAAVP6dkQrrOnCCJ6ICZGdXjFJzOR50PBii1LJkD9seI5TkcP3Ekk EoeWNGIZUYDezXF6PhqMMXIe7czx5Jg= X-Received: by 2002:a17:90a:8d10:: with SMTP id c16mr15467569pjo.109.1575178983609; Sat, 30 Nov 2019 21:43:03 -0800 (PST) Received: from localhost.localdomain ([124.80.131.109]) by smtp.googlemail.com with ESMTPSA id m71sm11729146pje.0.2019.11.30.21.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 21:43:03 -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 1/2] drivers: md: dm-log.c: Remove unused variable 'sz' Date: Sun, 1 Dec 2019 14:42:19 +0900 Message-Id: <20191201054219.13146-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 core_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 33e71ea6cc14..8800ec1847b5 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c @@ -781,7 +781,6 @@ static region_t core_get_sync_count(struct dm_dirty_log *log) static int core_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) { @@ -795,7 +794,7 @@ static int core_status(struct dm_dirty_log *log, status_type_t status, DMEMIT_SYNC; } - return sz; + return 0; } static int disk_status(struct dm_dirty_log *log, status_type_t status, -- 2.17.1