Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp635730imu; Wed, 9 Jan 2019 03:57:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN4vPYaO0hK3tE8N3AST2SGmvNcnGMv/4AMHEDA7U5P2DfA5py1EOJl+ZQlWgtT1F2+LEZaM X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr5830086plo.50.1547035048852; Wed, 09 Jan 2019 03:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547035048; cv=none; d=google.com; s=arc-20160816; b=Mw+G3Vja4Iet+po1/KMF5e7hWdNr5UidghiuBJ4gKM9JeAM8tcgvrZguuxxbyrx46+ HcTN06z2PZdi6kWA181tu49mwJ6mXsxleLLZyQbfPQaa98HVSkbmdDiuPa+QIA303LeQ ZuRLTKnhTIN6jH+/ukm1JOs9Ypa2zUK4OMGDLWp0jLIaqIv1pfPlDsj6BL1yiUtNCY1t k+KVKB/cE/MjgpFOw4EaTstmPlDXj7ZrR/NKXKo3aOLmVcZt1+CaWdTwzNY6plPRNxpr Trd1M+j0u+liLOpPx/m2QR7nHWVbQ3mwQsXahQ7kpOECCOBydPqiYl9U5kUI5F8WO1Xb LPOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=d+SROot9sbufheNYekmS6QLK+5nZnqQWFQpmK2UXJOw=; b=KHQYrEorvahilqIn8tBmk3z5/AU5hUVFFFGlwjvl4JAwafXLCVJjnu2T4vxlQGFyQO QpNfgetwviFVzdnw64ewtpkj8UbrMU0fWt6XggZMquS3Bi3Ikic2H/OMquP5/lSNyE/B yTRML9uf+t2MkqYp8PuUdN/7RmkRv3qjMDGOsP2+zkvuJAgzjtE5fe3XeE9gpmRngdHY 1tvuH1JGx+9/dQowaDEYiOjYWLzjgvq6yznLGGvfgWtc/8YL9qrmzP0GYOJnHGc9StjN s6/OPD04dW4IYJJibC4WgtiTx45Mu6fFdS5FHKQC/aRVwkv/1cN01WzPQY75PwCo/1/J PEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Z55R2GDA; 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=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e35si29887870pgb.548.2019.01.09.03.57.13; Wed, 09 Jan 2019 03:57:28 -0800 (PST) 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=@163.com header.s=s110527 header.b=Z55R2GDA; 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=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730249AbfAILzI (ORCPT + 99 others); Wed, 9 Jan 2019 06:55:08 -0500 Received: from m12-14.163.com ([220.181.12.14]:55135 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729883AbfAILzI (ORCPT ); Wed, 9 Jan 2019 06:55:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=d+SROot9sbufheNYek mS6QLK+5nZnqQWFQpmK2UXJOw=; b=Z55R2GDAynMUg8yGTaUqqAxXEX1WzxbGBn FPT3jdaMrhnorngpgsTdUhRhebh03ZAsSQ2e6RC2zMfgrCsVcJf4RDRnm5cJMhcg xf8jrVjFHxoJBj4ROrVvKyxSG60AH/kH5BrvyDnywILN+HyppWdouL+7Alk2Mg/P YxhKXO13w= Received: from localhost.localdomain (unknown [110.185.70.223]) by smtp10 (Coremail) with SMTP id DsCowADH_vTa4DVcgaiNAA--.1400S2; Wed, 09 Jan 2019 19:54:03 +0800 (CST) From: wangbo To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, wang.bo116@zte.com.cn Subject: [PATCH] uio:remove unneeded variable ret Date: Wed, 9 Jan 2019 19:53:59 +0800 Message-Id: <1547034839-3493-1-git-send-email-wdjjwb@163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: DsCowADH_vTa4DVcgaiNAA--.1400S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr1UXFWxAF4DGF1kAr13urg_yoWDKFXEkr WkK3yjgayDur4rua9I9F4YvFZ0yrWDWw4vqFnFkFyrWa47Grn5Jr4IyF9xXry8XrZ5CrWD Z397tr4UXr1DGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8WCJPUUUUU== X-Originating-IP: [110.185.70.223] X-CM-SenderInfo: xzgmy4re6rljoofrz/xtbBEhs3GVZX-r6LKAAAsF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In uio_dmem_genirq_open the variable ret is unneededw,remove it now. Signed-off-by: wangbo --- drivers/uio/uio_dmem_genirq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c index 003bada..2be7569 100644 --- a/drivers/uio/uio_dmem_genirq.c +++ b/drivers/uio/uio_dmem_genirq.c @@ -47,7 +47,6 @@ static int uio_dmem_genirq_open(struct uio_info *info, struct inode *inode) { struct uio_dmem_genirq_platdata *priv = info->priv; struct uio_mem *uiomem; - int ret = 0; int dmem_region = priv->dmem_region_start; uiomem = &priv->uioinfo->mem[priv->dmem_region_start]; @@ -71,7 +70,7 @@ static int uio_dmem_genirq_open(struct uio_info *info, struct inode *inode) mutex_unlock(&priv->alloc_lock); /* Wait until the Runtime PM code has woken up the device */ pm_runtime_get_sync(&priv->pdev->dev); - return ret; + return 0; } static int uio_dmem_genirq_release(struct uio_info *info, struct inode *inode) -- 2.7.4