Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3576463ybf; Tue, 3 Mar 2020 08:24:14 -0800 (PST) X-Google-Smtp-Source: ADFU+vt+JaMbk6Al6poES/+AJId90TX43HDayVk+vLGf+EalMIvMthLUW3CwkEcomdxO17xmL7dC X-Received: by 2002:a9d:69d7:: with SMTP id v23mr4029170oto.40.1583252653897; Tue, 03 Mar 2020 08:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583252653; cv=none; d=google.com; s=arc-20160816; b=eb6aoBSm/n9TMkUi/NoptYmNiv4Bxf/DxZR3Cj6WfGfkNnPihc56+iHPVYJZMJEq8D vcNzCExy4BiuHUa0PyE8ZQm/jm0p5nccPE6miVbCzkGJSp9V4n+6hW6YdGlW3cDGptVM oK3bDcC6nEhrOuwYdsoaYo5P17UiJn3rwR8NkQzs+wSHq6NplcyWVdGXidWgGjExbEmw im28UaRw0o6jfGgVutwp5HgAk3y9KF+uA1UYP3QOpByLP7vuzFXeOU0ZDroqu8ly7MD7 YJnMEBQ/kvZ0UHYZvjOMGa+OS/s9gAAr1V2T+98pGimEu4NVWsFFSq7EHvNEh8xzNE80 9MOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YUcw1KG3qrvpleqzqQ7xyhNdpovGgPoy1w9JlReaGGk=; b=W7YMBgP+j1rNMapGgKhPr2h+yw3ZJ/szv3e0VG7NdSwdlVZkkPWRequA1IMJNSFzP0 zzKRFzNKxCa9TQaKkhcvTIpdN6Xk+vXxCKR+soZ269bINMZODoIOGtDynrY1YEmQJmUK UOSX8c+GcxTAF3EqkNNAVyS1oFbvrMUWIzuJ9sNWF121b0+tBabrWEGhTfs73IsuaiEw js4GrZeQMEAEeLc9KJTe5HaBkCTafeVdUSXtW4vESSjVIyc8RdMvQ3k6gWD8MXpPcF5L djXC1P2Ifpu2Zm4PtOy7lF4hvDPHBEnrK2fx1DLHhKc5rNBMPyn27uEsFoSxp7SLYvdD oZUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BC+IQYQA; 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 l12si4318914otn.66.2020.03.03.08.24.00; Tue, 03 Mar 2020 08:24:13 -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=BC+IQYQA; 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 S1730354AbgCCQVo (ORCPT + 99 others); Tue, 3 Mar 2020 11:21:44 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38561 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgCCQVo (ORCPT ); Tue, 3 Mar 2020 11:21:44 -0500 Received: by mail-pl1-f193.google.com with SMTP id p7so1525426pli.5; Tue, 03 Mar 2020 08:21: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:mime-version :content-transfer-encoding; bh=YUcw1KG3qrvpleqzqQ7xyhNdpovGgPoy1w9JlReaGGk=; b=BC+IQYQA/hBOYJ9q/YG9kdpBsF9+tMbOpFAGLQ2bWvsY4KF4P8Q+dmAdfU78cGhWRP 0Yxb8itlOvfnGtQaxf24HMBU0W14RPWxsokNwDs/dq76dyyJgqpvzw/D1xUxklvYK2we UsS7KyvnvsXHaryzWGaxrGsMMrMsuArNfDU0h2E5R/sSvDtC3mvWmFUgPefDylr8UM2H 2cFqcrsibwblgR/8oYvQv+l7vIoaFxAfssROdh/0L9Icc0f6zwhhXRu0AkbmV5qw4RuL 6/M0mmbl7EATwVYKzZKzISeWeoPWdR7ObS2z2FHaZU8Issvet4l7kGGWOWQ6w2xKeV+i GwwQ== 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:mime-version :content-transfer-encoding; bh=YUcw1KG3qrvpleqzqQ7xyhNdpovGgPoy1w9JlReaGGk=; b=tfIzW6LnKwTjOAixXxjIrJLerLv7si7NgB6v3p5CoOxh1/Yur5ff5ysvy7hKa9PGFy 5VJAo69JRopUW/ibKH6p++4I4djx3EfA1pcGQt+ocD57ucHoK14obbvwMhE2wocgNmuk y2YbabGQYexUDDBEYnNlQJWzYRlXmtNSF19D35+4x5wTBCrYq95UDeoMHx5IOgfhiEAc 1qh3QeOCyHIh2v4eAeph2yBXctSnJdHlAtwVkD4piOQY9TWN6w72TcVNQbRar6x7KXMq C//WqAALBDrPz4+EtYcb7Ts+g+sPzdbmuwbMjos4Ou58rQKrOcvWA/lK0DAlnVFxvkF8 Mt1A== X-Gm-Message-State: ANhLgQ1JCtDsLoPVTbG77CHz9yzLp0Buai5oiRWx/lga7IRes1DnqIkx LZz95nO4RcdIy+7JEGUrWPg= X-Received: by 2002:a17:902:c086:: with SMTP id j6mr5071986pld.46.1583252503458; Tue, 03 Mar 2020 08:21:43 -0800 (PST) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id i5sm6833123pfo.173.2020.03.03.08.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 08:21:42 -0800 (PST) From: Qiujun Huang To: jlayton@kernel.org Cc: sage@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Qiujun Huang Subject: [PATCH] fs/ceph/export: remove unused variable 'err' Date: Wed, 4 Mar 2020 00:21:39 +0800 Message-Id: <1583252499-16078-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix gcc '-Wunused-but-set-variable' warning: fs/ceph/export.c: In function ‘__get_parent’: fs/ceph/export.c:294:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] int err; and needn't use the return value of ceph_mdsc_create_request. Signed-off-by: Qiujun Huang --- fs/ceph/export.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ceph/export.c b/fs/ceph/export.c index b6bfa94..b7bb41c 100644 --- a/fs/ceph/export.c +++ b/fs/ceph/export.c @@ -291,7 +291,6 @@ static struct dentry *__get_parent(struct super_block *sb, struct ceph_mds_request *req; struct inode *inode; int mask; - int err; req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPPARENT, USE_ANY_MDS); @@ -314,7 +313,7 @@ static struct dentry *__get_parent(struct super_block *sb, req->r_args.getattr.mask = cpu_to_le32(mask); req->r_num_caps = 1; - err = ceph_mdsc_do_request(mdsc, NULL, req); + ceph_mdsc_do_request(mdsc, NULL, req); inode = req->r_target_inode; if (inode) ihold(inode); -- 1.8.3.1