Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp480077pxh; Tue, 9 Nov 2021 13:55:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxixGeKcTJ910OVtshYItkxpge/imf38uJt4MEbC5r/A1toHIwhhIkw44/5TQatp6tUcxNk X-Received: by 2002:a02:cf06:: with SMTP id q6mr8281104jar.62.1636494958522; Tue, 09 Nov 2021 13:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636494958; cv=none; d=google.com; s=arc-20160816; b=ue+tfMDu9sPadUjXK9OnVKkdRIKhTp7tE4imKOlGDWLtSIRF7mqTkbOnjNVDW7rpIn jRfOnLchsjXc1zaYr6DvJd/HbewcTsO4/g8HR5NGNO0EqvFgnHGFxXUpUQYJ3ZJxw2B+ 2DABy0RNmfiOSj6y8rowbws/pTn+0S1ZNYIzGfMKZLtp3b0dvNO80B36hf77vcyOLoKP 9LtDyZnMg4yuxYFvDHmJa1VCapUY2R6dyRKs6b9dQFN0hGzCaSFwiVyZxLW/jyglFfNj 0/BR5dwz5jfV2KTWdZ0aYTToki4VwHOa3MmZYJtKv2XQA6JzidkF74zQbp570w9E61FF XrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5eMXmJwKC8GGRlh+nYxceho5NCyU5grVmBhZ8vwkJHo=; b=O60C5bOq5ntdz9O8Gcm7TDSDnQIqG7hL+6jJv/waQULOuM/biU8IdTUqTqXmeFloII CJx8VWTmdKWN3eDl6s0aClQk4ww1R6hqYPAtinOd4A0frSc3WVgWFtzZI7Ey90dNP0HF aOluik+9fD0Y1Mqn7HRmJykfqz2Iw4bwZP5mPv6l7j7t6/2FbAqeXl7rx9rEjsAaVZOQ ZKxepDv8P6G55D4hxUti09bjm+XE8Qe+zjPxLisDBi4dPXRPLzV+SG8O4e7oXLs0t4OE Ot4f7emC4g0ID68k1kP6m66++A1CNmCKFlpyrmvmxF8tiqYBjqufxQ+74RbXiWgjb0oI OY5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="PGXbW/eM"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si47912724ilv.145.2021.11.09.13.55.45; Tue, 09 Nov 2021 13:55:58 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="PGXbW/eM"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235893AbhKILqf (ORCPT + 99 others); Tue, 9 Nov 2021 06:46:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbhKILqf (ORCPT ); Tue, 9 Nov 2021 06:46:35 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D97C061764 for ; Tue, 9 Nov 2021 03:43:49 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id n85so14713287pfd.10 for ; Tue, 09 Nov 2021 03:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5eMXmJwKC8GGRlh+nYxceho5NCyU5grVmBhZ8vwkJHo=; b=PGXbW/eMSRNNFJ4kg5o2exkrpfmsER3wRrCgRu/Xa3g/idErzDC8zCE8rEum4uyxwQ MmYXcO2lJcZvG9C9GDBhRxpaj+t102I799V6poUg4X8QTHne6BOLpCYnUrZARVfz4pcB IyftOvEnJnNKnEOFqjrTczJoxrOx7LzE3ZlIa+3/p5FgbsrkCdQPbW2+OGEAQn9hoXWz yc+yxj4stLNc12zp/lsyMOd6k/C1gxL0UTfYhSuoGJVkvAsGoAGe+4F008A4+xMHV0EM a8+cBEMReYbsEw/jj5CPMTVbut13AZLKnJxiXJw2NCQ2Nw8cm2ZOOGuU3rG0if3nSivr Iadg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5eMXmJwKC8GGRlh+nYxceho5NCyU5grVmBhZ8vwkJHo=; b=gUfj0DbxkyXcF4+VcEwu+CAAAXSd6cOcFfvuA2/vbLzCMN0pVoqAxThgmW46CHjlWs vhi/kHgxHkk+sqAWPCEc3mpEht5EFN0k9FEHhdkqLuRJ2S7M2/SysaBiEugn6AHLUe5R yRA8l2zvpJoITuC5rLdpbCCncWr9kAxIdob/zCu0JSG1DS/3Q+HA2PEg/FE2vIoUY2dc s0JuKz+5QQgborrkDdhfooi9QYn4uSWXe95vlX0Mw4MbMZTz63K1OLXPl2CIlvVhgyjt xXJmMpWvSClF6q6gtbm+moUhDHy7mhp7aFpc6MGB6EkjDUzo2FAZWS31+WNVlTf4FyWA PI2w== X-Gm-Message-State: AOAM532dAo13o69N5Hg+5mWIbtC6AUi+Q1K41VinCyIlZtEAPvzUcn4E wNU1ozvbyvtR5c9og+mkoQ0= X-Received: by 2002:a62:e514:0:b0:47c:12f6:3aae with SMTP id n20-20020a62e514000000b0047c12f63aaemr7489484pff.26.1636458229011; Tue, 09 Nov 2021 03:43:49 -0800 (PST) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id i19sm6743549pfu.119.2021.11.09.03.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 03:43:48 -0800 (PST) From: cgel.zte@gmail.com X-Google-Original-From: deng.changcheng@zte.com.cn To: ericvh@gmail.com Cc: lucho@ionkov.net, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Changcheng Deng , Zeal Robot Subject: [PATCH] fs: 9p: remove unneeded variable Date: Tue, 9 Nov 2021 11:43:43 +0000 Message-Id: <20211109114343.132844-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Changcheng Deng Fix the following coccicheck review: ./fs/9p/vfs_file.c: 117: 5-8: Unneeded variable Remove unneeded variable used to store return value. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng --- fs/9p/vfs_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index aac46c5e5bba..eec8cf646a52 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -116,7 +116,6 @@ int v9fs_file_open(struct inode *inode, struct file *file) static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) { - int res = 0; struct inode *inode = file_inode(filp); p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl); @@ -126,7 +125,7 @@ static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) invalidate_mapping_pages(&inode->i_data, 0, -1); } - return res; + return 0; } static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) -- 2.25.1