From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5849C432C3 for ; Thu, 14 Nov 2019 07:23:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B98FF206E1 for ; Thu, 14 Nov 2019 07:23:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbfKNHXK (ORCPT ); Thu, 14 Nov 2019 02:23:10 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:60188 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725838AbfKNHXJ (ORCPT ); Thu, 14 Nov 2019 02:23:09 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C91C8E836E6A38782C59; Thu, 14 Nov 2019 15:23:07 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Thu, 14 Nov 2019 15:22:58 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] ubi: remove unused variable 'err' Date: Thu, 14 Nov 2019 15:22:36 +0800 Message-ID: <20191114072236.15104-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 drivers/mtd/ubi/debug.c:512:6: warning: unused variable 'err' [-Wunused-variable] commit 3427dd213259 ("mtd: no need to check return value of debugfs_create functions") leave this variable not used. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/mtd/ubi/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index f8d3752..8dba1b5 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c @@ -509,7 +509,7 @@ static const struct file_operations eraseblk_count_fops = { */ int ubi_debugfs_init_dev(struct ubi_device *ubi) { - int err, n; + int n; unsigned long ubi_num = ubi->ubi_num; struct ubi_debug_info *d = &ubi->dbg; -- 2.7.4