Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1372979ybg; Wed, 23 Oct 2019 14:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiGLyqPKU6u9UeT4l2eEtZ2hpq1F00MNtGx/+o6ZEmYfOgNbt5OBkigafGMYSMlmKaBTgK X-Received: by 2002:a50:da0f:: with SMTP id z15mr12426914edj.137.1571867354479; Wed, 23 Oct 2019 14:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571867354; cv=none; d=google.com; s=arc-20160816; b=ucdkcNw49rkZlngVtTpiSM/YoJfxYhN919qRBdIkH/TKZZynLRGrr0ZdRNZ+I4IZ0J oHrQpUh9DVMA9rEtbI8YfffczAssoS/2N3XvXyAvKQwsy4kCbdYMbKCco+deWl0rbmuM uNuzndRgy0fMfpmRTzevedOiF1fCK/dDbuZi4k/rAQJxSh2bswDFmxJlC6l/UIl7raE8 +Q5UVIYsEfrQrEkLv4nf8aExEFObz0gbmpYCw3K0gBLxl1ErNTQiHytzuCytVDo2VMcP 6Ukanu1QEduv/MIiiRGRTzsOHMhuduJDLj4E9t/WhDnqbbAagJoZZSB/PD3z1w9momcY is4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4PmSl3oR7Tml0Va6Xzk3O8hgiHHv4WxhzVeUEQ2TVCc=; b=g2mKZRzBYNNQEJG0/GtJFi3GpF1AHu9A8DF4cefB5LeLRxR/7yID3sta7VW7WAp1qn L1a2RS3h4qkdPQZmKf2FMozNnDmqWuTIJcl/0HHXTpNe5k827J8Kqw+udETJZjpKCzR1 yq4qgvJGi0lHgX+KoIwdo2FUOe/1jdXu9o+W25z5x9wQzaHhTixMlH9vDo8rp/mwDsLC 6aQmtvhXVoC9PVfy/ESJFL/1Mf/wiOUVz+bebkmIpgjQAhfv3s19ewxNUk/G0gJrH4Dr 7FzMxwU84ACYvRyNgfgpvRxb5VXNo/EioBEfkmUdjHJOVjlJp36CVOWZ+yAKWfV90YwX M1uw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si14238211edv.182.2019.10.23.14.48.49; Wed, 23 Oct 2019 14:49:14 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406078AbfJWNqT (ORCPT + 99 others); Wed, 23 Oct 2019 09:46:19 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43304 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729191AbfJWNqT (ORCPT ); Wed, 23 Oct 2019 09:46:19 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E84C9E136EF73CF8A241; Wed, 23 Oct 2019 21:46:16 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Wed, 23 Oct 2019 21:46:07 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH -next] powerpc/spufs: remove set but not used variable 'ctx' Date: Wed, 23 Oct 2019 21:44:23 +0800 Message-ID: <20191023134423.15052-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/powerpc/platforms/cell/spufs/inode.c:201:22: warning: variable ctx set but not used [-Wunused-but-set-variable] It is not used since commit 67cba9fd6456 ("move spu_forget() into spufs_rmdir()") Signed-off-by: YueHaibing --- arch/powerpc/platforms/cell/spufs/inode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 2dd452a..9b1586b 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -198,14 +198,12 @@ static int spufs_fill_dir(struct dentry *dir, static int spufs_dir_close(struct inode *inode, struct file *file) { - struct spu_context *ctx; struct inode *parent; struct dentry *dir; int ret; dir = file->f_path.dentry; parent = d_inode(dir->d_parent); - ctx = SPUFS_I(d_inode(dir))->i_ctx; inode_lock_nested(parent, I_MUTEX_PARENT); ret = spufs_rmdir(parent, dir); -- 2.7.4