Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3677742ybi; Tue, 2 Jul 2019 11:33:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcpsru6XoeII2xU7oxX8mtH2bKkzIR8GPmilWOhnwdxazGo+r1km51207KlESS5dC2DvPh X-Received: by 2002:a63:f857:: with SMTP id v23mr17865374pgj.228.1562092419009; Tue, 02 Jul 2019 11:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562092419; cv=none; d=google.com; s=arc-20160816; b=D8rosjLYxXv4rFqJVA+k7lzhuPBRBqyoAqtGIJxXv3JUVZKLsmBQB1yaoL+I2M3yBS P4BWbdSgB83Dpo6kuu5XPYHHusSwSuPzprRrHg97xPugtng758XFHYL39lRS90p3C+GH xaSlpYcrTyjL540jxSUIooCI5OILPZ1km4kEG9aJGM5UL0wGRCixSl6eLNIAf6SeFZKP 8fNSsVF+k0CWBjOrXgWVC1V21mwCrF5eGLTTD2YznLR7rdxoqeN1rmZaUOcnl77IuklD 0ea+KwdAdw25E3Lx5UMfI/d190wQ3WIkIBH3DR5A2uxzE1Wvj1ahgGgR3c5B/YR3/9od 83nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=BgFYEpI9Vf37MkAJvUbJgnA2AnUZ8zhFoQhGn0OdidQ=; b=PwsZPXYr/UpFaD0Vs6O7BUzpn2Gge987OUZ+NIbty+LYMZjvPZrlce4zTfIwMXCgo9 S3dT0LhSMPpE0vQ1t+Xcq9DXhKgtFBGezfZLVb87rXIh6rB8oL6gpkM27UD0of8QqqgU dmLHnfqZkpzeZQyRW2lWadG6Pp4RTOnaimoM5gkowhVOQoBYI3WmyxxC6f8CKW7VgOU/ tE4q3KEQSQhif50HGDeCcpTVHPQBMdjsR6SPRvX/mxocyfeQwOIB7Oy/YnD/2MgDreoI Sq5nGEw9yv4CAo/Yl9tBzy6WaRD+Q/tO+VgcQQLIPAelCmw1G2LJrL8iaNGFfNXDpYun ITBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UjaLW/hm"; 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 g18si14553772plq.190.2019.07.02.11.33.23; Tue, 02 Jul 2019 11:33:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UjaLW/hm"; 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 S1726964AbfGBScm (ORCPT + 99 others); Tue, 2 Jul 2019 14:32:42 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38487 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfGBScm (ORCPT ); Tue, 2 Jul 2019 14:32:42 -0400 Received: by mail-pf1-f193.google.com with SMTP id y15so8692689pfn.5 for ; Tue, 02 Jul 2019 11:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=BgFYEpI9Vf37MkAJvUbJgnA2AnUZ8zhFoQhGn0OdidQ=; b=UjaLW/hml7wdTUzn9k/Tvn08ZqMRJej+B/NUDQPLOFTBfVXol/+2xrYqn7ODbF1owh O/tWLo6ycZNu08wIvGzZzXJTur2JcISAieIKsFHkeO1bSRQAjFeyMpDzIwEXhf8c9BUx W7vxU5e+PIpgJWkjDVbFlB1eLI/oIBpXZZw5tqg04e6R723ta5vZ41quarhycoX0GqTL 2KLnKMlH5alqBkJBRy8/9xAZ+wSjPcR4v7PhS6up9NZeDDNyn0fgeVoagCh/GB8yDZlY bitxpmWbzn06xev0by3aaHa28hN26g51cKmUqusxJ87eMiOS/09g6CI3ruyhG+e++HV5 So4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=BgFYEpI9Vf37MkAJvUbJgnA2AnUZ8zhFoQhGn0OdidQ=; b=XQGZWXam3O386WpD52v7OqULvNGXmzR8biPzXx/ghfJTv5GSE0m8AZIMMszeA2APHS DI7rYIKjU5gJvnXwQrQjmhgyuy+gcXBi44/3iylOSGwxArmiKBx65U7LORPo5Lu/0f+7 elOkzCTV5srjWkTvbU5jROASfPIcNy8FjriFmambnjVs+g7UN0R/SCWTyl8YPL5+l5wQ rHiTOQyy0xs7td6vk/eQhBExB9jBtQlzZfgv7CEMSxD06m7+uKxM1hVzBlPI7xkkuIf1 Tqh31hv85RN1HvJKUzyOBlCz0kqIKtxA08aOyfnYQmS+mdd7F6Zsho2rWfpsvQTmaRI+ OGIw== X-Gm-Message-State: APjAAAUaDwR4KSV969Zns0JS0WzZQ17dw2nq17oy5/DMBDp0W8QX0eUD sjBmkERPW6kyHnLpFm0cUzzvtE1W X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr7276481pjq.142.1562092361630; Tue, 02 Jul 2019 11:32:41 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id h1sm22199164pfg.55.2019.07.02.11.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 11:32:41 -0700 (PDT) Date: Wed, 3 Jul 2019 00:02:37 +0530 From: Hariprasad Kelam To: Mark Fasheh , Joel Becker , Joseph Qi , ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org Subject: [PATCH] fs: ocfs2: dlmglue: Unneeded variable: "status" Message-ID: <20190702183237.GA13975@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below issue reported by coccicheck fs/ocfs2/dlmglue.c:4410:5-11: Unneeded variable: "status". Return "0" on line 4428 We can not change return type of ocfs2_downconvert_thread as its registered as callback of kthread_create. Signed-off-by: Hariprasad Kelam --- fs/ocfs2/dlmglue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index dc987f5..1420723 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -4407,7 +4407,6 @@ static int ocfs2_downconvert_thread_should_wake(struct ocfs2_super *osb) static int ocfs2_downconvert_thread(void *arg) { - int status = 0; struct ocfs2_super *osb = arg; /* only quit once we've been asked to stop and there is no more @@ -4425,7 +4424,7 @@ static int ocfs2_downconvert_thread(void *arg) } osb->dc_task = NULL; - return status; + return 0; } void ocfs2_wake_downconvert_thread(struct ocfs2_super *osb) -- 2.7.4