Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2770437ybi; Thu, 4 Jul 2019 19:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7L0/dYARiGv3Ji61CbNI8krZlvobVNE259S4TxrofyfOKDuJQ2FMgRObJpGVsaKvCs6e8 X-Received: by 2002:a63:6fc9:: with SMTP id k192mr1616477pgc.20.1562292506770; Thu, 04 Jul 2019 19:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562292506; cv=none; d=google.com; s=arc-20160816; b=fGQFs4mxJ/yG35UxTxOnmU4xJe+u+1SR0MAFz8hKFJPxwpcxspEzlOD+nAvQ7HsyXk cP88zQFH52tP3+8cldcIJidQHeREdVtWWfft7nKregbQARwtihxMc/UgCMQgoZ66WuOt TCoHL/Wwx2BLDzYRfBLX/u6S8Q27wI28UTyzZXL+NKeYmzeB6sDkQW/qGKoumKBlbi+g RtdF6d4IqVQxlHMnMNOBXbvy50OiOCZZ/jMa8XWUA7cBZuQqWnlJEWLGqnF8TB1G2TmL i0TE4okGMxPb9KqdrTNzt8jS/WWB+fn2/BpnubIpU7G6Tgk4mrctwUazQCf3fWinQpBh HWIA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject; bh=nd/IHjKXibW2ChvNjtWskOkRA77xFby/I+TV9iFswrQ=; b=nIBSjvSnmj8MNt1NVENrAkA1l79htV1QafLueaXNa8FDlDZVmM6qbSp3GMpXSQcK5R EqtreVt6wqK683lyLXzvOFNvdP2F88cVv8QNeaneNqeqvTAmxlkJbTxKmvgIXSyQZt7H qoLpeRykbTTopdcs6dIuNeU8gn59AINe3hgTznxV1wHga9jjSpsXsnwG17OqdMoQElLo +m+8FSfR556yUd0/UDXdqvdYbm9B0ljV5Lnqp2ZGn8Pram9oYjNbZ9Cxc+R7r8ozv/Y9 Y/s6JzS5JgIvVAIeVYvez8AYBrC/oJ8VG7Ho03N0KUdeuIJ8epGtvWQ1GGWtmSDIkP+M WR+w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si7058509pgd.440.2019.07.04.19.08.12; Thu, 04 Jul 2019 19:08:26 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727539AbfGECGS (ORCPT + 99 others); Thu, 4 Jul 2019 22:06:18 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:38789 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbfGECGS (ORCPT ); Thu, 4 Jul 2019 22:06:18 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0TW3OPEY_1562292372; Received: from JosephdeMacBook-Pro.local(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0TW3OPEY_1562292372) by smtp.aliyun-inc.com(127.0.0.1); Fri, 05 Jul 2019 10:06:13 +0800 Subject: Re: [PATCH] fs: ocfs2: dlmglue: Unneeded variable: "status" To: Hariprasad Kelam , Mark Fasheh , Joel Becker , ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org References: <20190702183237.GA13975@hari-Inspiron-1545> Cc: Andrew Morton From: Joseph Qi Message-ID: <6a6ae279-9d35-0c00-d3db-72e11cda3838@linux.alibaba.com> Date: Fri, 5 Jul 2019 10:06:12 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190702183237.GA13975@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/7/3 02:32, Hariprasad Kelam wrote: > 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 Reviewed-by: Joseph Qi > --- > 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) >