Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7486345imu; Tue, 22 Jan 2019 06:51:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UJMgpZMf0l8X+JM1/L5zpmbeR+cW9MxXxeSwLWY4S+bdJ9R/Dkzi3qxfeaqvc2FDFmR5y X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr34557970plb.83.1548168663597; Tue, 22 Jan 2019 06:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548168663; cv=none; d=google.com; s=arc-20160816; b=Hfn3lZm/WafVHd+5V9dGSQftjHFtg8mcxOUiGikT0vETMAm+pDT0QpXPnP43vlVvSN JtLs00RPCmYfZvEwx7QV30DmlWVXjAdd82zzYGIT6ZP5TqOGiLKtlgzyGFgw3N5mVSeu AnHMfQ/MmWCFgvnUfkh1Vc7887MrfJa1AlRekqk5Cn/7VdF3fspeJdU7RWYfj2BH/NRI 9mL3gFUmI4yXHcJ4avxoTngyKnEnL8u/6hoZeAZxk5xxf8xxAOJqhvRjWEKFsZ2Z6oSa 9eNi7HAfUcZZmIGuU76K6QIlQ7kSWMXLzmWHLBUYlL1ADupOpkVTPszt2UJGmc++J/Vr cLVA== 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=SJCdauQe6QoeEHk3E6CfEhMg/t1Nqq1uepFVEj/67nk=; b=fYRY2zBhlV9T6LfOD3953L9OZQckDjoVFowK2bSK7srnPbGzpZqly6PSLu/M4Iv+xw wQeE2RQjE5wXnkuPzfr3aND3QOCSYWvzCLttCKQCVE95RTdXUufXf4C1FKsUQO+nHFIi daQlaGnAkKJsu3bpADbsKWrmrqDMcc7Z5hlN5FpzS/KG/3/uIgD91n5mY7t7FUWHHtB2 /8l1/9LvLQ0PyXBVKXDF99JN/mCWEraovABjodzcFEAUliKFi/LvGbBOYaolUnC4DhMm 1RLN4FsxHsHOCQ2uyiYtm53sNto9MypYku5tSHi6jiBP2g1RyxzPOvjpLca6Hk+IqhNF 6Uqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Eub6ULmR; 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 c17si16139408pgl.385.2019.01.22.06.50.47; Tue, 22 Jan 2019 06:51:03 -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=Eub6ULmR; 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 S1728905AbfAVOtW (ORCPT + 99 others); Tue, 22 Jan 2019 09:49:22 -0500 Received: from m12-13.163.com ([220.181.12.13]:48090 "EHLO m12-13.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728353AbfAVOtV (ORCPT ); Tue, 22 Jan 2019 09:49:21 -0500 X-Greylist: delayed 909 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Jan 2019 09:49:20 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=SJCdauQe6QoeEHk3E6 CfEhMg/t1Nqq1uepFVEj/67nk=; b=Eub6ULmR2g9q9toVZw1RrsVkBhZnp7FI27 4MzKWruWfBgFsbvYNUIuuUBLmEupyvWhJxSwbomAAVzS8RUIRrVaMmIQ0EfqpaVz 861uq6wxcClj8J6RIuU7jglupNdXoI8zreg28F8h8a0zqo1cFUU3F7koz3LVw3bG dMSz2+880= Received: from localhost.localdomain (unknown [182.139.212.77]) by smtp9 (Coremail) with SMTP id DcCowACnM4PaKUdcc20PCg--.32661S2; Tue, 22 Jan 2019 22:34:03 +0800 (CST) From: Bo Wang To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, wang.bo116@zte.com.cn, wangbo Subject: [PATCH v2] uio:remove unneeded variable ret Date: Tue, 22 Jan 2019 22:33:57 +0800 Message-Id: <1548167637-2607-1-git-send-email-wdjjwb@163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: DcCowACnM4PaKUdcc20PCg--.32661S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZF1rtF15trW7Jw1rWr15Arb_yoWkXrXEkr Wvq3y0gayDur4ruanI9F4YvFZ0yrWkWw4vqFnFkF93Wa47Grn5Jr4IyF9xXry8XrZ5GrWD A3yxtr4UXr1DWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbT5l7UUUUU== X-Originating-IP: [182.139.212.77] X-CM-SenderInfo: xzgmy4re6rljoofrz/1tbiOxtEGVXlhoSZXwAAsJ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: wangbo In uio_dmem_genirq_open the variable ret is unneeded,remove it now. Signed-off-by: Bo Wang --- 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