Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2330420pxb; Mon, 8 Mar 2021 22:49:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVgNACe3TYGUp9EyYb1UU7XUbY3E66u+IqtuUUrpAdPqqKFKQUEJDOlUV8XS9DYcwxZhbM X-Received: by 2002:aa7:c345:: with SMTP id j5mr2347990edr.338.1615272591599; Mon, 08 Mar 2021 22:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615272591; cv=none; d=google.com; s=arc-20160816; b=AwmFZamLXVbsvV9bSrLVrIOepL7rmnlznE5D+YIz8ImoPkQy0US7EuAn/48NR1ON7c HQiPPsKd9yQqgDKkSlfFwyTwWKbCCdTBWtbeJGSLHlTZdrjD1S+vNTLtnCsnISpZtl1L Vj5T2APht8+7A018ww9/ACgfavBnXq8pUptl4mtO9L0pE9u3Rd6a1cOs4JHRkf0lG6mJ nKXsmH4beLrSAbcAt5gVnK1S5N+oQsVkWldxOxwhs1W7cbZUyZT3cTNUQKJsb1KhwHVX 31T1R1oOKjh6aglmQM9Ah8cur/tU0+O4oGMYLmCZU9jprHJUIjd+ml6CwMlHXbYCKLJz T1rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=B/Ffrb+iMotzAZcMpTkwuGxeIEm0ZOAxcuWxCZNYsq0=; b=BklC0QA1xkVC11UbXEHnM7IL1lFp5z+81qo7G8Nd2a5reGd1ukllAR+ReSsEosmANa So+rGHEO3aqbnt/jeVYRp/FfEqdkkkcMPnuqiC94iObasKj1MF+tdn7XRltbqH3yx4LY OYj0ebhPqSfKhCOe+T2QGGO1nHCTTvzqP8CYx/S9toLOm8xXwJCC7zlOWvkwl1Msoip7 5LWbl41k0HlPF+sVdU0j7mxr328wLrWRmrJpokBifkKinBPNrpMYV3A1JXQgCUEirXCJ tQa1VfTPr2blSythF+bb9Dyb8SW/mTK6fQMZT6GTBBrlYF2FRfoQM4a9HOrf5T9hxX1W Y2Fw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du4si6651342ejc.94.2021.03.08.22.49.29; Mon, 08 Mar 2021 22:49:51 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbhCIGsO (ORCPT + 99 others); Tue, 9 Mar 2021 01:48:14 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:35183 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbhCIGsD (ORCPT ); Tue, 9 Mar 2021 01:48:03 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UR3kCff_1615272481; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UR3kCff_1615272481) by smtp.aliyun-inc.com(127.0.0.1); Tue, 09 Mar 2021 14:48:01 +0800 From: Yang Li To: brucechang@via.com.tw Cc: HaraldWelte@viatech.com, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] mmc: via-sdmmc: remove unneeded variable 'ret' Date: Tue, 9 Mar 2021 14:47:58 +0800 Message-Id: <1615272478-52458-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/mmc/host/via-sdmmc.c:1274:5-8: Unneeded variable: "ret". Return "0" on line 1295 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/mmc/host/via-sdmmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c index 4f4c081..a1d0985 100644 --- a/drivers/mmc/host/via-sdmmc.c +++ b/drivers/mmc/host/via-sdmmc.c @@ -1271,7 +1271,6 @@ static int __maybe_unused via_sd_suspend(struct device *dev) static int __maybe_unused via_sd_resume(struct device *dev) { struct via_crdr_mmc_host *sdhost; - int ret = 0; u8 gatt; sdhost = dev_get_drvdata(dev); @@ -1292,7 +1291,7 @@ static int __maybe_unused via_sd_resume(struct device *dev) via_restore_pcictrlreg(sdhost); via_init_sdc_pm(sdhost); - return ret; + return 0; } static SIMPLE_DEV_PM_OPS(via_sd_pm_ops, via_sd_suspend, via_sd_resume); -- 1.8.3.1