Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp663765imu; Wed, 9 Jan 2019 04:26:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN48RZ8xFnKmhBDhyXMKdz+QeZeJJjyS+XttskjXkk43oSD/qwAwWGfpTRK/HiD4lHntgEte X-Received: by 2002:a17:902:7896:: with SMTP id q22mr5922547pll.280.1547036768461; Wed, 09 Jan 2019 04:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547036768; cv=none; d=google.com; s=arc-20160816; b=NjLBu/VQDp1heITpmK3x/P+UHwnVfcUIc5cnlGjj0R8BhmzvVsL0MJtkhDfuOj/VaQ 8P/LFPTqqwzyoNWbWwrkh9NadaMPPj4CNiwFO1ccIPoUAqF4QAPGGZU8wUGNsi/FkKhz E5IRTxSjSo3n2K3AACDw+bazo+abwSTe6q2mEhszIxk0cS7d/VlTJKRFdPUWky5ySjhu xXdFF9qHP3rzvC3emaU9w6wpe5IMEKNkKQ6LLhYo6LM0DkygyF++uB2sqq1XhmYOgOrm VPcpEDSv4QQmZzogZHQFEMAf8zdw8RUvmZlH2dbKV1yHOvvQ6pMSDk3Uj0GpQPcQ5XCC nHaA== 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=TY84r/Ln7WEOJD5tk8eOJ7YfnM6dQBHRcMrBTtic7Hw=; b=XC6M+t4oEZniJ6/fCcELpOLH28zvJoe2OjS7b4AnBnh1MSCUGvF4CGvwXMDzAnQW0N pjD2JGjyhcQUr917KkmwAvYxiaquzgGjY89ZfpsqYW0U4n/7uEM0fSSLrQcRCCiLr8BP lDvYn+dJ21aDXl+1oQgCi3No8CLmz3qIc4iYoe8l/ehcRfhXHbtVjNdyejlTHPhrY39N mJYvm4wq1Zm8EOmtqrsH6TQSAWNdA03lY3/tTjumVf6aPGRlAIJWVsQvTknLnL3sDUXf QgBlSf7V4M6Yk3yU5ju1/0leVMVjTZ2/b5W8h0javHo+TvNHipYn3inY3W5vB8Cp5lvl Xk7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=auSw5SVc; 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 u184si66263065pgd.262.2019.01.09.04.25.52; Wed, 09 Jan 2019 04:26:08 -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=auSw5SVc; 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 S1730604AbfAIMLU (ORCPT + 99 others); Wed, 9 Jan 2019 07:11:20 -0500 Received: from m12-16.163.com ([220.181.12.16]:56699 "EHLO m12-16.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbfAIMLU (ORCPT ); Wed, 9 Jan 2019 07:11:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=TY84r/Ln7WEOJD5tk8 eOJ7YfnM6dQBHRcMrBTtic7Hw=; b=auSw5SVcf4tYNbuEfrkqgt6O8IhPq4G3Ms h9fOMSzhlzAQh4ZGW/Ku77mgmjpGTplCGl99DkdTzG74HdwEyc/Aa3ncxC1kW9kx GXRYdQ1SMX2MidyxEuc6Q1pIS4PGbqTUnImSzYGdWNQJwaltUCXBfduWWtIFo9rf 9+T9104y0= Received: from localhost.localdomain (unknown [110.185.70.223]) by smtp12 (Coremail) with SMTP id EMCowABHzPm85DVcQt6HAA--.14475S2; Wed, 09 Jan 2019 20:10:37 +0800 (CST) From: wangbo To: linux-kernel@vger.kernel.org Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, wang.bo116@zte.com.cn Subject: [PATCH] mmc:sdio: Remove unneeded variable ret Date: Wed, 9 Jan 2019 20:10:33 +0800 Message-Id: <1547035833-3924-1-git-send-email-wdjjwb@163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: EMCowABHzPm85DVcQt6HAA--.14475S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtry8Zw1fJr1kXrW3Jry7Wrg_yoWfAwc_Cr W5Xrs7Grn5Za1rG3W29F1SvryqgFn7ZrnYgFn5Kay3Jr17J3WkWF4DZFn09ryfury0ka1j yr45XryUZF4rCjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnag43UUUUU== X-Originating-IP: [110.185.70.223] X-CM-SenderInfo: xzgmy4re6rljoofrz/xtbBEhs3GVZX-r6LKAABsE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In sdio_bus_remove the variable is unneeded,remove it now. Signed-off-by: wangbo --- drivers/mmc/core/sdio_bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index b6d8203..62b0f5e 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -179,7 +179,6 @@ static int sdio_bus_remove(struct device *dev) { struct sdio_driver *drv = to_sdio_driver(dev->driver); struct sdio_func *func = dev_to_sdio_func(dev); - int ret = 0; /* Make sure card is powered before invoking ->remove() */ if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) @@ -205,7 +204,7 @@ static int sdio_bus_remove(struct device *dev) dev_pm_domain_detach(dev, false); - return ret; + return 0; } static const struct dev_pm_ops sdio_bus_pm_ops = { -- 2.7.4