Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1218413ybj; Thu, 7 May 2020 18:10:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLfxmC0BzUBu+IKCgpEHbKyRsYbanv5Jk85rj3bO1Q0Aq2nWIyZaHTtDEJBnTRQ/fV7fRQ8 X-Received: by 2002:a17:906:a418:: with SMTP id l24mr14688122ejz.362.1588900233275; Thu, 07 May 2020 18:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588900233; cv=none; d=google.com; s=arc-20160816; b=HB9rhmqcoCrdKE3GZ1vLK/QA+FTSDRL8WGYt4NTGHEn8nms3VPPYCn15Uhy1Berwvi vP2OqDVHtZs/yzCRianj84n4cOln2kIBzPNDqv01cx+YWzBdrtQLOw4CJKn+wNRwwJQo 6XSqwEjAFTYNjFOa6bkkT7daCvFkMOkOKUOJ3zy4/5d84oJl4evlxsgUn+jAw5DiAESQ FwPBrSt76MCdWtMG0j+G3Khorlse3isGQ8e6gz+l+sPbt1er7w0kTDsTM47SVa7D2YuO Xk+EPrygPck8tvRaufbqbTFYwLEEmwCKW8WdkobVHzCaVrPWtlFsMW4dVM/6kGUiKDfD Lp3Q== 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:references:cc:to:subject; bh=XrRPGF6DfkQ1A7uMrGf0jRWIgWZ3LsGBGDuk0uSz8bo=; b=U5NSwFRKlX0iYdxHwpQ8//qhnkqd9T26dzacTl+RO7WCLCxdiTiBXWjeKwiiguRZow k9X3jnvNlQJQnCvI9lPXdItBdUJ7OZufbw65BnZT7DAVIiQtCvLVP+9b9VbefikOV3oG MsluTeE9dREL9P8on27v5GbpFGWXTZwrtzT/9o3tnyhXBMtVNHCm+u/o19bIsDPi2/bY 6U/IMxWFfKCHxqEGGbNMw/lROCd5Xvz0wayD7VK7cFFDOCG4jPB3z8SpMbMICSw56sEC RRLtP8I2u3t8ykfQa1u+kBml6Kdx3ItZW3Ghfk5IdqcsmyE6vpvDH16pTBj+jLoim93H fY4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv13si43842ejb.458.2020.05.07.18.10.10; Thu, 07 May 2020 18:10:33 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbgEHBGQ (ORCPT + 99 others); Thu, 7 May 2020 21:06:16 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3903 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726509AbgEHBGP (ORCPT ); Thu, 7 May 2020 21:06:15 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6BF86FCECC25D483787D; Fri, 8 May 2020 09:06:13 +0800 (CST) Received: from [127.0.0.1] (10.166.212.180) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 May 2020 09:06:09 +0800 Subject: Re: [PATCH -next] dm mpath: Remove unused variable ret To: Mike Snitzer CC: , , References: <1588854412-19301-1-git-send-email-zou_wei@huawei.com> <20200507142958.GA12032@redhat.com> From: Samuel Zou Message-ID: Date: Fri, 8 May 2020 09:06:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200507142958.GA12032@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.212.180] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, You are right. I did not notice that the macro DMEMIT uses the sz variable. Thanks. On 2020/5/7 22:29, Mike Snitzer wrote: > On Thu, May 07 2020 at 8:26am -0400, > Samuel Zou wrote: > >> This patch fixes below warning reported by coccicheck: >> >> drivers/md/dm-historical-service-time.c:240:14-16: Unneeded variable: "sz". Return "0" on line 261 >> >> Reported-by: Hulk Robot >> Signed-off-by: Samuel Zou > > Nack. > > DMEMIT() uses the local sz variable. > >